-
Notifications
You must be signed in to change notification settings - Fork 94
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
basic flake8 stuff #6629
base: master
Are you sure you want to change the base?
basic flake8 stuff #6629
Conversation
tox.ini
Outdated
tests/*: A001, A003, B010, B017, B904, C401, C405, C408, C413, C416, C420, E731, TC001, TC002, TC003, ISC001, N400, SIM117, SIM201, SIM203, SIM300 | ||
|
||
|
||
; for clarity we don't merge 'with Conf():' context trees | ||
tests/unit/parsec/*: SIM117, TC001, TC002, TC003 | ||
tests/unit/parsec/*: B017, B904, C408, C413, SIM113, SIM117, TC001, TC002, TC003 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rather than ignoring specific codes, can we just ignore the flake8 extensions as a whole.
E.g:
tests/*: SIM
Rather than:
tests/*: SIM201, SIM203, SIM300
Suggest only using the default flake8 codes for the tests (i.e. turning off all the extensions).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Except Bugbear 904, apparently.
…ative imports. Added explanation of B904 needing an explicit exception to tox.ini
Apply basic Flake 8 standards to the tests.
CONTRIBUTING.md
and added my name as a Code Contributor.setup.cfg
(andconda-environment.yml
if present).