You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
flake8 itself is just a framework and does not implement any checks of its own. you're probably looking for pyflakes which implements the F codes (on phone sorry, there's a duplicate issue there, I opened it in the past)
In GitLab by @adamchainz on Oct 24, 2019, 04:18
Please describe how you installed Flake8
pip install flake8==3.7.8
Please provide the exact, unmodified output of
flake8 --bug-report
Please describe the problem or feature
This code raises F841:
Python also lets us define variables as functions with the
def
statement, therefore I'd expect this to also raise F841:The real world case for this is I had a student create some unit tests that "passed" due to bad indentation, creating the test functions within
setUp
:instead of
A flake8 warning would have helped them find the tests weren't being run.
The text was updated successfully, but these errors were encountered: