Skip to content

Commit 3b83163

Browse files
Merge pull request #2105 from VWS-Python/pylint-strict
Use strict pylint settings
2 parents 5d260d2 + a06dfc4 commit 3b83163

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

pyproject.toml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,28 @@
1010

1111
# List of plugins (as comma separated values of python modules names) to load,
1212
# usually to register additional checkers.
13+
# See https://chezsoi.org/lucas/blog/pylint-strict-base-configuration.html.
14+
# We do not use the plugins:
15+
# - pylint.extensions.code_style
16+
# - pylint.extensions.magic_value
17+
# - pylint.extensions.while_used
18+
# as they seemed to get in the way.
1319
load-plugins = [
20+
'pylint.extensions.bad_builtin',
21+
'pylint.extensions.comparison_placement',
22+
'pylint.extensions.consider_refactoring_into_while_condition',
1423
'pylint.extensions.docparams',
24+
'pylint.extensions.dunder',
25+
'pylint.extensions.eq_without_hash',
26+
'pylint.extensions.for_any_all',
27+
'pylint.extensions.mccabe',
1528
'pylint.extensions.no_self_use',
29+
'pylint.extensions.overlapping_exceptions',
30+
'pylint.extensions.private_import',
31+
'pylint.extensions.redefined_loop_name',
32+
'pylint.extensions.redefined_variable_type',
33+
'pylint.extensions.set_membership',
34+
'pylint.extensions.typing',
1635
]
1736

1837
# Allow loading of arbitrary C extensions. Extensions are imported into the
@@ -26,7 +45,11 @@
2645
# multiple time (only on the command line, not in the configuration file where
2746
# it should appear only once). See also the "--disable" option for examples.
2847
enable = [
48+
'bad-inline-option',
49+
'deprecated-pragma',
50+
'file-ignored',
2951
'spelling',
52+
'use-symbolic-message-instead',
3053
'useless-suppression',
3154
]
3255

0 commit comments

Comments
 (0)