From 2163a8f809aa4a7ba6dcdfea8ec0c2f740dbd757 Mon Sep 17 00:00:00 2001 From: Carson Gee Date: Tue, 15 Jan 2019 07:26:01 -0500 Subject: [PATCH] Pylint cleanup --- pylintrc | 9 +++++++-- pytest_pylint.py | 8 ++------ 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/pylintrc b/pylintrc index 0d936cc..411c737 100644 --- a/pylintrc +++ b/pylintrc @@ -1,3 +1,8 @@ [TYPECHECK] -ignored-classes=pytest -disable=bad-option-value + +ignored-classes = pytest + + +[MESSAGES CONTROL] + +disable = useless-object-inheritance diff --git a/pytest_pylint.py b/pytest_pylint.py index 32767ab..7565adc 100644 --- a/pytest_pylint.py +++ b/pytest_pylint.py @@ -166,16 +166,12 @@ def pytest_configure(config): config.addinivalue_line('markers', "pylint: Tests which run pylint.") -# There will be an old-style-class error in Python 2.7, -# or a useless-object-inheritance warning in Python 3. -# If disable any, pylint will have a bad-option-value error in 2.7 or 3. -# Finally I have to disable useless-object-inheritance locally -# and bad-option-value globally. -# pylint: disable=too-few-public-methods, useless-object-inheritance class PylintPlugin(object): """ A Plugin object for pylint, which loads and records file mtimes. """ + # pylint: disable=too-few-public-methods + def __init__(self, config): self.mtimes = config.cache.get(HISTKEY, {})