iotests/297: Move pylint config into pylintrc
Move --score=n and --notes=XXX,FIXME into pylintrc. This pulls configuration out of code, which I think is probably a good thing in general. Signed-off-by: John Snow <jsnow@redhat.com> Reviewed-by: Hanna Reitz <hreitz@redhat.com> Message-id: 20211019144918.3159078-2-jsnow@redhat.com Signed-off-by: John Snow <jsnow@redhat.com>
This commit is contained in:
parent
af531756d2
commit
95a556e7c7
@ -65,10 +65,8 @@ def run_linters():
|
|||||||
print('=== pylint ===')
|
print('=== pylint ===')
|
||||||
sys.stdout.flush()
|
sys.stdout.flush()
|
||||||
|
|
||||||
# Todo notes are fine, but fixme's or xxx's should probably just be
|
|
||||||
# fixed (in tests, at least)
|
|
||||||
env = os.environ.copy()
|
env = os.environ.copy()
|
||||||
subprocess.run(('pylint-3', '--score=n', '--notes=FIXME,XXX', *files),
|
subprocess.run(('pylint-3', *files),
|
||||||
env=env, check=False)
|
env=env, check=False)
|
||||||
|
|
||||||
print('=== mypy ===')
|
print('=== mypy ===')
|
||||||
|
@ -31,6 +31,22 @@ disable=invalid-name,
|
|||||||
too-many-statements,
|
too-many-statements,
|
||||||
consider-using-f-string,
|
consider-using-f-string,
|
||||||
|
|
||||||
|
|
||||||
|
[REPORTS]
|
||||||
|
|
||||||
|
# Activate the evaluation score.
|
||||||
|
score=no
|
||||||
|
|
||||||
|
|
||||||
|
[MISCELLANEOUS]
|
||||||
|
|
||||||
|
# List of note tags to take in consideration, separated by a comma.
|
||||||
|
# TODO notes are fine, but FIXMEs or XXXs should probably just be
|
||||||
|
# fixed (in tests, at least).
|
||||||
|
notes=FIXME,
|
||||||
|
XXX,
|
||||||
|
|
||||||
|
|
||||||
[FORMAT]
|
[FORMAT]
|
||||||
|
|
||||||
# Maximum number of characters on a single line.
|
# Maximum number of characters on a single line.
|
||||||
|
Loading…
Reference in New Issue
Block a user