Add pylint formatter

This commit is contained in:
Ian Cordasco 2016-02-07 10:45:19 -06:00
parent 2fc853b772
commit b8a38c2573
2 changed files with 15 additions and 0 deletions

View file

@ -29,3 +29,17 @@ class Default(base.BaseFormatter):
"row": error.line_number,
"col": error.column_number,
}
class Pylint(Default):
"""Pylint formatter for Flake8."""
error_format = '%(path)s:%(row)d: [%(code)s] %(text)s'
def after_init(self):
"""Do not check the value of --format.
In the default formatter, this makes sense for backwards
compatibility, but it does not make sense here.
"""
pass

View file

@ -72,6 +72,7 @@ setuptools.setup(
],
'flake8.report': [
'default = flake8.formatting.default:Default',
'pylint = flake8.formatting.default:Pylint',
],
},
classifiers=[