Skip to content

Commit 90c440e

Browse files
nzloshcognifloyd
authored andcommitted
Fix Useless option value for W0142, W0232 and R0201
1 parent 6500b46 commit 90c440e

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

lint-configs/python/.pylintrc

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
[MESSAGES CONTROL]
22
# C0111 Missing docstring
33
# I0011 Warning locally suppressed using disable-msg
4-
# W0142 Used * or * magic* Used when a function or method is called using *args or **kwargs to dispatch arguments.
54
# W0212 Access to a protected member %s of a client class
6-
# W0232 Class has no __init__ method Used when a class has no __init__ method, neither its parent classes.
75
# W0613 Unused argument %r Used when a function or method argument is not used.
86
# W0702 No exception's type specified Used when an except clause doesn't specify exceptions type to catch.
9-
# R0201 Method could be a function
107
# W0614 Unused import XYZ from wildcard import
118
# R0914 Too many local variables
129
# R0912 Too many branches
@@ -16,14 +13,13 @@
1613
# E0211: Method has no argument
1714
# E1128: Assigning to function call which only returns None Used when an assignment is done on a function call but the inferred function returns nothing but None.
1815
# E1129: Context manager ‘%s’ doesn’t implement __enter__ and __exit__. Used when an instance in a with statement doesn’t implement the context manager protocol(__enter__/__exit__).
19-
disable=C0103,C0111,I0011,W0142,W0212,W0232,W0613,W0702,R0201,W0614,R0914,R0912,R0915,R0913,R0904,R0801,not-context-manager,assignment-from-none
16+
disable=C0103,C0111,I0011,W0212,W0613,W0702,W0614,R0914,R0912,R0915,R0913,R0904,R0801,not-context-manager,assignment-from-none
2017

2118
[BASIC]
2219
property-classes=abc.abstractproperty
2320

2421
[TYPECHECK]
25-
# Note: This modules are manipulated during the runtime so we can't detect all the properties during
26-
# static analysis
22+
# Note: These modules are manipulated during the runtime so we can't detect all the properties during static analysis
2723
# orjson has type stubs, but pylint doesn't support __init__.pyi yet: https://github.com/PyCQA/pylint/issues/2873
2824
ignored-modules=distutils,eventlet.green.subprocess,six,six.moves,orjson
2925

0 commit comments

Comments
 (0)