Handle repeated --quiet options again

Fundamentally on Flake8 2.x using -q altered the format of the errors
(and the behaviour a little) so it makes the most sense to implement
this logic with formatters rather than messy logic spread throughout
the project.

The FilenameOnly formatter will keep track of filenames already reported
and only print the name once while Nothing will print nothing.

Closes #180
This commit is contained in:
Ian Cordasco 2016-07-25 19:32:42 -05:00
parent 4dc1d11a62
commit 222292c4b2
No known key found for this signature in database
GPG key ID: 656D3395E4A9791A
4 changed files with 36 additions and 2 deletions

View file

@ -107,6 +107,8 @@ setuptools.setup(
'flake8.report': [
'default = flake8.formatting.default:Default',
'pylint = flake8.formatting.default:Pylint',
'quiet-filename = flake8.formatting.default:FilenameOnly',
'quiet-nothing = flake8.formatting.default:Nothing',
],
},
classifiers=[