We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
per-file-ignores
Please describe how you installed Flake8
Example:
$ python -m pip install flake8
Please provide the exact, unmodified output of flake8 --bug-report
flake8 --bug-report
% flake8 --bug-report Usage: flake8 [OPTIONS] [PY_FILE]... Try 'flake8 --help' for help. Error: no such option: --bug-report
(what went wrong here?)
Please describe the problem or feature
If is specified twice in per-file-ignores—one explicitly one implicitly via globs (*), the ignored violation codes are not respected.
*
If this is a bug report, please explain with examples (and example code) what you expected to happen and what actually happened.
With a project of the format:
. ├── dir │ ├── bar.py │ └── foo.py └── .flake8
"""foo.py""" a = (1,2)
"""bar.py""" import os a = (1,2)
# .flake8 [flake8] per-file-ignores = dir/*:E231 dir/bar.py:F401
I expect E231 to be ignored in both files, and F401 to be ignored in bar.py.
E231
F401
bar.py
% flake8 dir/* dir/bar.py:3:7: E231 missing whitespace after ','
Only F401 is ignored in bar.py, but not not E231.
The text was updated successfully, but these errors were encountered:
dupe #670
I'm also suspicious of your flake8 installation if --bug-report isn't working you've probably got a bigger problem with your installation
--bug-report
Sorry, something went wrong.
Good catch. Sorry for missing that.
Yeah I had some path confusion there and wasn't calling the right flake8 for that command. Thanks for the heads up!
No branches or pull requests
Please describe how you installed Flake8
Example:
Please provide the exact, unmodified output of
flake8 --bug-report
(what went wrong here?)
Please describe the problem or feature
If is specified twice in
per-file-ignores
—one explicitly one implicitly via globs (*
), the ignored violation codes are not respected.If this is a bug report, please explain with examples (and example code) what you expected to happen and what actually happened.
With a project of the format:
What I expect
I expect
E231
to be ignored in both files, andF401
to be ignored inbar.py
.What happens
Only
F401
is ignored inbar.py
, but not notE231
.The text was updated successfully, but these errors were encountered: