Skip to content

Commit 2a01abd

Browse files
committed
Disable a creepy pylint error
1 parent f1f964b commit 2a01abd

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

pylintrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
[TYPECHECK]
2-
ignored-classes=pytest
2+
ignored-classes=pytest
3+
disable=bad-option-value

pytest_pylint.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,11 @@ 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.
169174
# pylint: disable=too-few-public-methods, useless-object-inheritance
170175
class PylintPlugin(object):
171176
"""

0 commit comments

Comments
 (0)