Skip to content

Commit cf40248

Browse files
committed
fix: sync lint settings with covidcast-indicators
1 parent 6d6a9ea commit cf40248

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

pyproject.toml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,25 @@ profile = "black"
1414
known_third_party = ["pytest"]
1515

1616
[tool.pylint]
17-
# Settings copied from
18-
# cmu-delphi/covidcast-indicators/_delphi_utils_python/.pylintrc
19-
[tool.pylint.'MESSAGES CONTROL']
20-
max-line-length = 120
21-
disable = [
22-
'logging-format-interpolation',
23-
# Allow pytest functions to be part of a class
24-
'no-self-use',
25-
'too-many-locals',
26-
'too-many-arguments',
27-
# Allow pytest classes to have one test
28-
'too-few-public-methods',
29-
]
17+
[tool.pylint.main]
18+
max-line-length = 120
19+
disable = [
20+
'logging-format-interpolation',
21+
# Allow pytest functions to be part of a class
22+
'no-self-use',
23+
'too-many-locals',
24+
'too-many-arguments',
25+
'too-many-branches',
26+
# Allow pytest classes to have one test
27+
'too-few-public-methods',
28+
]
29+
enable = 'useless-suppression'
3030

31-
[tool.pylint.'BASIC']
32-
# Allow arbitrarily short-named variables.
33-
variable-rgx = ['[a-z_][a-z0-9_]*']
34-
argument-rgx = [ '[a-z_][a-z0-9_]*' ]
35-
attr-rgx = ['[a-z_][a-z0-9_]*']
31+
[tool.pylint.basic]
32+
# Allow arbitrarily short-named variables.
33+
variable-rgx = '[a-z_][a-z0-9_]*'
34+
argument-rgx = '[a-z_][a-z0-9_]*'
35+
attr-rgx = '[a-z_][a-z0-9_]*'
3636

37-
[tool.pylint.'DESIGN']
38-
ignored-argument-names = ['(_.*|run_as_module)']
37+
[tool.pylint.design]
38+
ignored-argument-names = ['(_.*|run_as_module)']

0 commit comments

Comments
 (0)