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
In GitLab by @mskrajnowski on Dec 13, 2017, 05:53
Please describe how you installed Flake8
# in a virtualenv $ pip install flake8
Please provide the exact, unmodified output of flake8 --bug-report
flake8 --bug-report
{ "dependencies": [ { "dependency": "setuptools", "version": "34.2.0" } ], "platform": { "python_implementation": "CPython", "python_version": "2.7.12", "system": "Linux" }, "plugins": [ { "is_local": false, "plugin": "mccabe", "version": "0.6.1" }, { "is_local": false, "plugin": "pycodestyle", "version": "2.3.1" }, { "is_local": false, "plugin": "pyflakes", "version": "1.6.0" }, { "is_local": false, "plugin": "unicode-string-literal", "version": "1.1" } ], "version": "3.5.0" }
Please describe the problem or feature
Explicitly specified modules are not always checked, depending on what exclude is set:
exclude
I would expect flake8 to either:
flake8
If this is a bug report, please explain with examples (and example code) what you expected to happen and what actually happened.
Prepare a simple project for testing
$ mkdir -p test-flake8-exclude/test $ cd test-flake8-exclude $ echo "import os" > test/module.py
Try without exclude
$ flake8 . && echo OK ./test/module.py:1:1: F401 'os' imported but unused $ flake8 test/module.py && echo OK test/module.py:1:1: F401 'os' imported but unused
Try excluding the directory
$ echo "[flake8]" > .flake8 $ echo "exclude = test" >> .flake8 $ flake8 . && echo OK OK $ flake8 test/module.py && echo OK test/module.py:1:1: F401 'os' imported but unused
Try excluding the module
$ echo "[flake8]" > .flake8 $ echo "exclude = module.py" >> .flake8 $ flake8 . && echo OK OK $ flake8 test/module.py && echo OK OK
I'd expect results in 3. and 4. to be the same.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In GitLab by @mskrajnowski on Dec 13, 2017, 05:53
Please describe how you installed Flake8
# in a virtualenv $ pip install flake8
Please provide the exact, unmodified output of
flake8 --bug-report
Please describe the problem or feature
Explicitly specified modules are not always checked, depending on what
exclude
is set:I would expect
flake8
to either:If this is a bug report, please explain with examples (and example code) what you expected to happen and what actually happened.
Prepare a simple project for testing
Try without exclude
Try excluding the directory
Try excluding the module
I'd expect results in 3. and 4. to be the same.
The text was updated successfully, but these errors were encountered: