@@ -57,7 +57,6 @@ enable=use-symbolic-message-instead
57
57
# no Warning level messages displayed, use"--disable=all --enable=classes
58
58
# --disable=W"
59
59
disable =spelling, # way too noisy
60
- no-self-use, # disabled as it is too verbose
61
60
fixme, # disabled as TODOs would show up as warnings
62
61
protected-access, # disabled as we don't follow the public vs private
63
62
# convention strictly
@@ -71,7 +70,6 @@ disable=spelling, # way too noisy
71
70
no-else-return, # relax "elif" after a clause with a return
72
71
docstring-first-line-empty, # relax docstring style
73
72
import-outside-toplevel,
74
- bad-continuation, bad-whitespace, # differences of opinion with black
75
73
import-error, # overzealous with our optionals/dynamic packages
76
74
consider-using-f-string, # pass re-lint old commits
77
75
broad-exception-raised, # pass re-lint old commits
@@ -136,63 +134,33 @@ property-classes=abc.abstractproperty
136
134
# Regular expression matching correct module names
137
135
module-rgx =(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
138
136
139
- # Naming hint for module names
140
- module-name-hint =(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
141
-
142
137
# Regular expression matching correct constant names
143
138
const-rgx =(([A-Z_][A-Z0-9_]*)|(__.*__))$
144
139
145
- # Naming hint for constant names
146
- const-name-hint =(([A-Z_][A-Z0-9_]*)|(__.*__))$
147
-
148
140
# Regular expression matching correct class names
149
141
class-rgx =[A-Z_][a-zA-Z0-9]+$
150
142
151
- # Naming hint for class names
152
- class-name-hint =[A-Z_][a-zA-Z0-9]+$
153
-
154
143
# Regular expression matching correct function names
155
144
function-rgx =[a-z_][a-z0-9_]{2,30}$
156
145
157
- # Naming hint for function names
158
- function-name-hint =[a-z_][a-z0-9_]{2,30}$
159
-
160
146
# Regular expression matching correct method names
161
147
method-rgx =(([a-z_][a-z0-9_]{2,49})|(assert[A-Z][a-zA-Z0-9]{2,43})|(test_[_a-zA-Z0-9]{2,}))$
162
148
163
- # Naming hint for method names
164
- method-name-hint =[a-z_][a-z0-9_]{2,30}$ or camelCase `assert*` in tests.
165
-
166
149
# Regular expression matching correct attribute names
167
150
attr-rgx =[a-z_][a-z0-9_]{2,30}$
168
151
169
- # Naming hint for attribute names
170
- attr-name-hint =[a-z_][a-z0-9_]{2,30}$
171
-
172
152
# Regular expression matching correct argument names
173
153
argument-rgx =[a-z_][a-z0-9_]{2,30}|ax|dt$
174
154
175
- # Naming hint for argument names
176
- argument-name-hint =[a-z_][a-z0-9_]{2,30}$
177
-
178
155
# Regular expression matching correct variable names
179
156
variable-rgx =[a-z_][a-z0-9_]{1,30}$
180
157
181
- # Naming hint for variable names
182
- variable-name-hint =[a-z_][a-z0-9_]{1,30}$
183
-
184
158
# Regular expression matching correct class attribute names
185
159
class-attribute-rgx =([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
186
160
187
- # Naming hint for class attribute names
188
- class-attribute-name-hint =([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
189
-
190
161
# Regular expression matching correct inline iteration names
191
162
inlinevar-rgx =[A-Za-z_][A-Za-z0-9_]*$
192
163
193
- # Naming hint for inline iteration names
194
- inlinevar-name-hint =[A-Za-z_][A-Za-z0-9_]*$
195
-
196
164
# Regular expression which should only match function or class names that do
197
165
# not require a docstring.
198
166
no-docstring-rgx =^_
@@ -220,12 +188,6 @@ ignore-long-lines=^\s*(# )?<?https?://\S+>?$
220
188
# else.
221
189
single-line-if-stmt =no
222
190
223
- # List of optional constructs for which whitespace checking is disabled. `dict-
224
- # separator` is used to allow tabulation in dicts, etc.: {1 : 1,\n222: 2}.
225
- # `trailing-comma` allows a space between comma and closing bracket: (a, ).
226
- # `empty-line` allows space-only lines.
227
- no-space-check =trailing-comma,dict-separator
228
-
229
191
# Maximum number of lines in a module
230
192
max-module-lines =1000
231
193
@@ -422,4 +384,4 @@ analyse-fallback-blocks=no
422
384
423
385
# Exceptions that will emit a warning when being caught. Defaults to
424
386
# "Exception"
425
- overgeneral-exceptions =Exception
387
+ overgeneral-exceptions =builtins. Exception
0 commit comments