mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-01 19:36:54 +00:00
Add pylint formatter
This commit is contained in:
parent
2fc853b772
commit
b8a38c2573
2 changed files with 15 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
1
setup.py
1
setup.py
|
|
@ -72,6 +72,7 @@ setuptools.setup(
|
|||
],
|
||||
'flake8.report': [
|
||||
'default = flake8.formatting.default:Default',
|
||||
'pylint = flake8.formatting.default:Pylint',
|
||||
],
|
||||
},
|
||||
classifiers=[
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue