Skip to content

Commit bbc5615

Browse files
committed
fix: corrected use of the bad-functions config
1 parent 81ae52c commit bbc5615

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

.pylintrc

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[MASTER]
1+
[MAIN]
22

33
# Specify a configuration file.
44
#rcfile=
@@ -20,7 +20,9 @@ persistent=no
2020

2121
# List of plugins (as comma separated values of python modules names) to load,
2222
# usually to register additional checkers.
23-
load-plugins=pylint.extensions.docparams,pylint.extensions.docstyle
23+
load-plugins=pylint.extensions.docparams,
24+
pylint.extensions.docstyle,
25+
pylint.extensions.bad_builtin,
2426

2527
# Use multiple processes to speed up Pylint.
2628
jobs=1
@@ -177,10 +179,7 @@ logging-modules=logging
177179
good-names=main,_
178180

179181
# Bad variable names which should always be refused, separated by a comma
180-
bad-names=input,
181-
apply,
182-
reduce,
183-
foo,
182+
bad-names=foo,
184183
bar,
185184
baz,
186185
toto,
@@ -377,3 +376,10 @@ exclude-protected=_asdict,_fields,_replace,_source,_make
377376

378377
# Exceptions that will emit a warning when caught.
379378
overgeneral-exceptions=builtins.BaseException,builtins.Exception
379+
380+
[DEPRECATED_BUILTINS]
381+
382+
# List of builtins function names that should not be used, separated by a comma
383+
bad-functions=input,
384+
apply,
385+
reduce

0 commit comments

Comments
 (0)