mirror of
https://github.com/PyCQA/flake8.git
synced 2026-03-29 10:36:53 +00:00
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:
parent
4dc1d11a62
commit
222292c4b2
4 changed files with 36 additions and 2 deletions
2
setup.py
2
setup.py
|
|
@ -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=[
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue