Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix lint errors due to using isort 5.0 #51

Merged
merged 4 commits into from
Jul 13, 2020
Merged

Fix lint errors due to using isort 5.0 #51

merged 4 commits into from
Jul 13, 2020

Conversation

cwdavies
Copy link
Contributor

@cwdavies cwdavies commented Jul 6, 2020

Removed not_skip and recursive from tox.ini to fix
TypeError: init() got an unexpected keyword argument 'not_skip'

  • recursive
    Prior to version 5.0.0, isort wouldn't automatically traverse directories. The --recursive option was necessary to tell it to do so. In 5.0.0 directories are automatically traversed for all Python files, and as such this option is no longer necessary and should simply be removed.

  • not_skip
    In an earlier version isort had a default skip of init.py. To get around that many projects wanted a way to not skip init.py or any other files that were automatically skipped in the future by isort. isort no longer has any default skips, so if the value here is init.py you can simply remove the setting.

https://timothycrosley.github.io/isort/docs/upgrade_guides/5.0.0/

Removed `not_skip` and `recursive` from `tox.ini` to fix
TypeError: __init__() got an unexpected keyword argument 'not_skip'

* recursive
Prior to version 5.0.0, isort wouldn't automatically traverse directories. The --recursive option was necessary to tell it to do so. In 5.0.0 directories are automatically traversed for all Python files, and as such this option is no longer necessary and should simply be removed.

* not_skip
In an earlier version isort had a default skip of __init__.py. To get around that many projects wanted a way to not skip __init__.py or any other files that were automatically skipped in the future by isort. isort no longer has any default skips, so if the value here is __init__.py you can simply remove the setting.

https://timothycrosley.github.io/isort/docs/upgrade_guides/5.0.0/
setup.py Outdated Show resolved Hide resolved
setup.py Outdated Show resolved Hide resolved
@cwdavies cwdavies requested a review from willbarton July 8, 2020 18:37
@cwdavies cwdavies merged commit 5577284 into master Jul 13, 2020
@cwdavies cwdavies deleted the isort-updates branch July 13, 2020 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants