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
The Python linting tool Flake8 has useful options: --statistics and --count.
Basic use
$ flake8 ../interactive_console.py:5:1: E402 module level import not at top of file<snip>./pytumblr/helpers.py:31:1: E302 expected 2 blank lines, found 1
With --statistics
$ flake8 . --statistics./interactive_console.py:5:1: E402 module level import not at top of file<snip>./pytumblr/helpers.py:31:1: E302 expected 2 blank lines, found 11 E201 whitespace after '{'1 E222 multiple spaces after operator3 E265 block comment should start with '# '2 E302 expected 2 blank lines, found 11 E305 expected 2 blank lines after class or function definition, found 118 E402 module level import not at top of file90 E501 line too long (92 > 79 characters)1 W293 blank line contains whitespace
With --count
$ flake8 . --count./interactive_console.py:5:1: E402 module level import not at top of file<snip>./pytumblr/helpers.py:31:1: E302 expected 2 blank lines, found 1117
With both
$ flake8 . --count --statistics./interactive_console.py:5:1: E402 module level import not at top of file<snip>./pytumblr/helpers.py:31:1: E302 expected 2 blank lines, found 11 E201 whitespace after '{'1 E222 multiple spaces after operator3 E265 block comment should start with '# '2 E302 expected 2 blank lines, found 11 E305 expected 2 blank lines after class or function definition, found 118 E402 module level import not at top of file90 E501 line too long (92 > 79 characters)1 W293 blank line contains whitespace117
Any chance to include something like that here?
Thanks!
The text was updated successfully, but these errors were encountered:
The Python linting tool Flake8 has useful options:
--statistics
and--count
.Basic use
With --statistics
With --count
With both
Any chance to include something like that here?
Thanks!
The text was updated successfully, but these errors were encountered: