Skip to content

Commit bc21890

Browse files
add new pylint violations to pylintrc
1 parent 7b53486 commit bc21890

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

.pylintrc312

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# A comma-separated list of package or module names from where C extensions may
44
# be loaded. Extensions are loading into the active Python interpreter and may
55
# run arbitrary code.
6-
extension-pkg-whitelist=
6+
extension-pkg-allow-list=dash.html,dash.dash_table
77

88
# Add files or directories to the blacklist. They should be base names, not
99
# paths.
@@ -159,7 +159,13 @@ disable=invalid-name,
159159
line-too-long,
160160
super-with-arguments,
161161
raise-missing-from,
162-
bad-option-value
162+
bad-option-value,
163+
use-dict-literal,
164+
missing-timeout,
165+
unnecessary-dunder-call,
166+
unnecessary-lambda-assignment,
167+
broad-exception-raised,
168+
consider-using-generator,
163169

164170
# Enable the message, report, category or checker with the given id(s). You can
165171
# either give multiple identifier separated by comma (,) or put this option
@@ -332,13 +338,6 @@ indent-string=' '
332338
# Maximum number of lines in a module.
333339
max-module-lines=1000
334340

335-
# List of optional constructs for which whitespace checking is disabled. `dict-
336-
# separator` is used to allow tabulation in dicts, etc.: {1 : 1,\n222: 2}.
337-
# `trailing-comma` allows a space between comma and closing bracket: (a, ).
338-
# `empty-line` allows space-only lines.
339-
no-space-check=trailing-comma,
340-
dict-separator
341-
342341
# Allow the body of a class to be on the same line as the declaration if body
343342
# contains single statement.
344343
single-line-class-stmt=no
@@ -516,7 +515,7 @@ max-bool-expr=5
516515
max-branches=15
517516

518517
# Maximum number of locals for function / method body.
519-
max-locals=15
518+
max-locals=18
520519

521520
# Maximum number of parents for a class (see R0901).
522521
max-parents=7
@@ -574,4 +573,4 @@ known-third-party=enchant
574573

575574
# Exceptions that will emit a warning when being caught. Defaults to
576575
# "Exception".
577-
overgeneral-exceptions=Exception
576+
overgeneral-exceptions=builtins.Exception

0 commit comments

Comments
 (0)