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
I have noticed that the formatting for "--format pep8" is inconsistent, because
it will not have a type field (E) and number:
Given t.py:
= meh
% pylama -l mccabe,pep8,pyflakes,pep257 --format=pep8 t.py
t.py:1:2: E111 indentation is not a multiple of four [pep8]
t.py:1:2: E113 unexpected indentation [pep8]
t.py:1:1: unexpected indent [pyflakes]
This makes it more difficult to parse (e.g. using Vim's errorformat).
(The same file with the "pylint" format gets different errors, which appears to
be a separate issue?! pep257 and mccabe is used here, but pep8 is not.
That happens when using pyflakes, which throws a SyntaxError from
Do not special-case mccabe - it is also not handled in pyflakes.
This uses 'pylama' as the linter name in this case, and also adds an
error number to it for consistency.
Fixesklen#72.
blueyed
added a commit
to blueyed/pylama
that referenced
this issue
Sep 6, 2016
Do not special-case mccabe - it is also not handled in pyflakes.
This uses 'pylama' as the linter name in this case, and also adds an
error number to it for consistency.
Fixesklen#72.
I have noticed that the formatting for "--format pep8" is inconsistent, because
it will not have a type field (E) and number:
Given
t.py
:This makes it more difficult to parse (e.g. using Vim's errorformat).
With --format=pylint:
(The same file with the "pylint" format gets different errors, which appears to
be a separate issue?! pep257 and mccabe is used here, but pep8 is not.
That happens when using pyflakes, which throws a SyntaxError from
pylama/pylama/lint/pylama_pyflakes.py
Line 41 in e9e926f
The text was updated successfully, but these errors were encountered: