Skip to content

Commit 9bfe8be

Browse files
authored
Merge pull request #85 from carsongee/feature/cleanup
Pylint cleanup
2 parents a319ad4 + 2163a8f commit 9bfe8be

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

pylintrc

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
[TYPECHECK]
2-
ignored-classes=pytest
3-
disable=bad-option-value
2+
3+
ignored-classes = pytest
4+
5+
6+
[MESSAGES CONTROL]
7+
8+
disable = useless-object-inheritance

pytest_pylint.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -166,16 +166,12 @@ def pytest_configure(config):
166166
config.addinivalue_line('markers', "pylint: Tests which run pylint.")
167167

168168

169-
# There will be an old-style-class error in Python 2.7,
170-
# or a useless-object-inheritance warning in Python 3.
171-
# If disable any, pylint will have a bad-option-value error in 2.7 or 3.
172-
# Finally I have to disable useless-object-inheritance locally
173-
# and bad-option-value globally.
174-
# pylint: disable=too-few-public-methods, useless-object-inheritance
175169
class PylintPlugin(object):
176170
"""
177171
A Plugin object for pylint, which loads and records file mtimes.
178172
"""
173+
# pylint: disable=too-few-public-methods
174+
179175
def __init__(self, config):
180176
self.mtimes = config.cache.get(HISTKEY, {})
181177

0 commit comments

Comments
 (0)