Skip to content

Commit 4d58c78

Browse files
committed
chore: Bump pylint to v3
1 parent d8e2269 commit 4d58c78

File tree

2 files changed

+34
-65
lines changed

2 files changed

+34
-65
lines changed

.pylintrc

Lines changed: 32 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,6 @@ unsafe-load-any-extension=no
3434
# run arbitrary code
3535
extension-pkg-whitelist=
3636

37-
# Allow optimization of some AST trees. This will activate a peephole AST
38-
# optimizer, which will apply various small optimizations. For instance, it can
39-
# be used to obtain the result of joining multiple strings with the addition
40-
# operator. Joining a lot of strings can lead to a maximum recursion error in
41-
# Pylint and this flag can prevent that. It has one side effect, the resulting
42-
# AST will be different than the one from reality. This option is deprecated
43-
# and it will be removed in Pylint 2.0.
44-
optimize-ast=no
45-
4637

4738
[MESSAGES CONTROL]
4839

@@ -65,21 +56,31 @@ enable=indexing-exception,old-raise-syntax
6556
# --enable=similarities". If you want to run only the classes checker, but have
6657
# no Warning level messages displayed, use"--disable=all --enable=classes
6758
# --disable=W"
68-
disable=design,similarities,no-self-use,attribute-defined-outside-init,locally-disabled,star-args,pointless-except,bad-option-value,global-statement,fixme,suppressed-message,useless-suppression,locally-enabled,file-ignored,missing-type-doc
59+
disable=design,
60+
similarities,
61+
no-self-use,
62+
attribute-defined-outside-init,
63+
locally-disabled,
64+
star-args,
65+
pointless-except,
66+
bad-option-value,
67+
lobal-statement,
68+
fixme,
69+
suppressed-message,
70+
useless-suppression,
71+
locally-enabled,
72+
file-ignored,
73+
missing-type-doc,
74+
c-extension-no-member,
6975

7076

7177
[REPORTS]
7278

73-
# Set the output format. Available formats are text, parseable, colorized, msvs
74-
# (visual studio) and html. You can also give a reporter class, eg
75-
# mypackage.mymodule.MyReporterClass.
76-
output-format=text
77-
78-
# Put messages in a separate file for each module / package specified on the
79-
# command line instead of printing them on stdout. Reports (if any) will be
80-
# written in a file name "pylint_global.[txt|html]". This option is deprecated
81-
# and it will be removed in Pylint 2.0.
82-
files-output=no
79+
# Set the output format. Available formats are: 'text', 'parseable',
80+
# 'colorized', 'json2' (improved json format), 'json' (old json format), msvs
81+
# (visual studio) and 'github' (GitHub actions). You can also give a reporter
82+
# class, e.g. mypackage.mymodule.MyReporterClass.
83+
output-format=colorized
8384

8485
# Tells whether to display a full report or only the messages
8586
reports=no
@@ -176,9 +177,15 @@ logging-modules=logging
176177
good-names=main,_
177178

178179
# Bad variable names which should always be refused, separated by a comma
179-
bad-names=
180-
181-
bad-functions=input,apply,reduce
180+
bad-names=input,
181+
apply,
182+
reduce,
183+
foo,
184+
bar,
185+
baz,
186+
toto,
187+
tutu,
188+
tata
182189

183190
# Colon-delimited sets of names that determine each other's naming style when
184191
# the name regexes allow several styles.
@@ -194,64 +201,33 @@ property-classes=abc.abstractproperty
194201
# Regular expression matching correct function names
195202
function-rgx=[a-z_][a-z0-9_]*$
196203

197-
# Naming hint for function names
198-
function-name-hint=[a-z_][a-z0-9_]*$
199-
200204
# Regular expression matching correct variable names
201205
variable-rgx=[a-z_][a-z0-9_]{2,30}$
202206

203-
# Naming hint for variable names
204-
variable-name-hint=[a-z_][a-z0-9_]{2,30}$
205-
206207
# Regular expression matching correct constant names
207208
const-rgx=^(_?[A-Z][A-Z0-9_]*|__[a-z0-9_]+__|_?[a-z][a-z0-9_]*)$
208209

209-
210-
# Naming hint for constant names
211-
const-name-hint=(([A-Z_][A-Z0-9_]*)|(__.*__))$
212-
213210
# Regular expression matching correct attribute names
214211
attr-rgx=[a-z_][a-z0-9_]{2,30}$
215212

216-
# Naming hint for attribute names
217-
attr-name-hint=[a-z_][a-z0-9_]{2,30}$
218-
219213
# Regular expression matching correct argument names
220214
argument-rgx=[a-z_][a-z0-9_]{2,30}$
221215

222-
# Naming hint for argument names
223-
argument-name-hint=[a-z_][a-z0-9_]{2,30}$
224-
225216
# Regular expression matching correct class attribute names
226217
class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
227218

228-
# Naming hint for class attribute names
229-
class-attribute-name-hint=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
230-
231219
# Regular expression matching correct inline iteration names
232220
inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
233221

234-
# Naming hint for inline iteration names
235-
inlinevar-name-hint=[A-Za-z_][A-Za-z0-9_]*$
236-
237222
# Regular expression matching correct class names
238223
class-rgx=[A-Z_][a-zA-Z0-9]+$
239224

240-
# Naming hint for class names
241-
class-name-hint=[A-Z_][a-zA-Z0-9]+$
242-
243225
# Regular expression matching correct module names
244226
module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
245227

246-
# Naming hint for module names
247-
module-name-hint=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
248-
249228
# Regular expression matching correct method names
250229
method-rgx=[a-z_][a-z0-9_]*$
251230

252-
# Naming hint for method names
253-
method-name-hint=[a-z_][a-z0-9_]*$
254-
255231
# Regular expression which should only match function or class names that do
256232
# not require a docstring.
257233
no-docstring-rgx=(__.*__|main)
@@ -294,12 +270,6 @@ ignore-long-lines=^\s*(# )?<?https?://\S+>?$
294270
# else.
295271
single-line-if-stmt=no
296272

297-
# List of optional constructs for which whitespace checking is disabled. `dict-
298-
# separator` is used to allow tabulation in dicts, etc.: {1 : 1,\n222: 2}.
299-
# `trailing-comma` allows a space between comma and closing bracket: (a, ).
300-
# `empty-line` allows space-only lines.
301-
no-space-check=trailing-comma,dict-separator
302-
303273
# Maximum number of lines in a module
304274
max-module-lines=1000
305275

@@ -405,6 +375,5 @@ exclude-protected=_asdict,_fields,_replace,_source,_make
405375

406376
[EXCEPTIONS]
407377

408-
# Exceptions that will emit a warning when being caught. Defaults to
409-
# "Exception"
410-
overgeneral-exceptions=Exception
378+
# Exceptions that will emit a warning when caught.
379+
overgeneral-exceptions=builtins.BaseException,builtins.Exception

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
astroid == 2.5.8
2-
pylint == 2.7.4
1+
astroid == 3.3.10
2+
pylint == 3.3.7
33
pytest >= 8.2.2
44
pytest-cov >= 2.4.0
55
pytest-localserver >= 0.4.1

0 commit comments

Comments
 (0)