Blanket --select rule not selecting default ignored violation codes
$ pip install flake8
{
"dependencies": [
{
"dependency": "setuptools",
"version": "32.2.0"
}
],
"platform": {
"python_implementation": "CPython",
"python_version": "3.6.1",
"system": "Darwin"
},
"plugins": [
{
"plugin": "mccabe",
"version": "0.6.1"
},
{
"plugin": "pycodestyle",
"version": "2.3.1"
},
{
"plugin": "pyflakes",
"version": "1.5.0"
}
],
"version": "3.3.0"
}
Flake8 doesn't pass the selected errors or warnings to pycodestyle. So, E126 is disabled by default. When I select all errors or that error specificly with pycodestyle, I see the error but with flake8 it doesn't work in both ways.
Example code (bla.py
):
print(
"Hallo",
"World")
$ pycodestyle bla.py
bla.py:3:5: E131 continuation line unaligned for hanging indent
$ flake8 bla.py
bla.py:3:5: E131 continuation line unaligned for hanging indent
$ pycodestyle --select E bla.py
bla.py:2:7: E126 continuation line over-indented for hanging indent
bla.py:3:5: E131 continuation line unaligned for hanging indent
$ flake8 --select E bla.py
bla.py:3:5: E131 continuation line unaligned for hanging indent
$ pycodestyle --select E126 bla.py
bla.py:2:7: E126 continuation line over-indented for hanging indent
$ flake8 --select E126 bla.py
$
Edited by username-removed-6325