Skip to content

Commit 9fda3b4

Browse files
committed
satisfy upgraded pylint
1 parent 5f7cf90 commit 9fda3b4

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

lint-configs/python/.pylintrc

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,17 @@
11
[MESSAGES CONTROL]
22
# C0111 Missing docstring
33
# I0011 Warning locally suppressed using disable-msg
4-
# I0012 Warning locally suppressed using disable-msg
5-
# W0704 Except doesn't do anything Used when an except clause does nothing but "pass" and there is no "else" clause
6-
# W0142 Used * or * magic* Used when a function or method is called using *args or **kwargs to dispatch arguments.
74
# W0212 Access to a protected member %s of a client class
8-
# W0232 Class has no __init__ method Used when a class has no __init__ method, neither its parent classes.
95
# W0613 Unused argument %r Used when a function or method argument is not used.
106
# W0702 No exception's type specified Used when an except clause doesn't specify exceptions type to catch.
11-
# R0201 Method could be a function
127
# W0614 Unused import XYZ from wildcard import
138
# R0914 Too many local variables
149
# R0912 Too many branches
1510
# R0915 Too many statements
1611
# R0913 Too many arguments
1712
# R0904 Too many public methods
1813
# E0211: Method has no argument
19-
disable=C0103,C0111,I0011,I0012,W0704,W0142,W0212,W0232,W0613,W0702,R0201,W0614,R0914,R0912,R0915,R0913,R0904,R0801
14+
disable=C0103,C0111,I0011,W0212,W0613,W0702,W0614,R0914,R0912,R0915,R0913,R0904,R0801
2015

2116
[TYPECHECK]
2217
# Note: This modules are manipulated during the runtime so we can't detect all the properties during

st2auth_flat_file_backend/flat_file.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,12 @@ class HttpasswdFileWithComments(HtpasswdFile):
3333
"""
3434

3535
def _load_lines(self, lines):
36-
result = super(HttpasswdFileWithComments, self)._load_lines(lines=lines)
36+
super(HttpasswdFileWithComments, self)._load_lines(lines=lines)
3737

3838
# Filter out comments
3939
self._records.pop(COMMENT_MARKER, None)
4040
assert COMMENT_MARKER not in self._records
4141

42-
return result
43-
4442
def _parse_record(self, record, lineno):
4543
if record.startswith(b'#'):
4644
# Comment, add special marker so we can filter it out later

0 commit comments

Comments
 (0)