Skip to content

Commit dcfd1ba

Browse files
Pylint configurations standartized
1 parent 53c009d commit dcfd1ba

File tree

1 file changed

+8
-31
lines changed

1 file changed

+8
-31
lines changed

.pylintrc

Lines changed: 8 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -68,44 +68,24 @@ disable=raw-checker-failed,
6868
useless-suppression,
6969
deprecated-pragma,
7070
use-symbolic-message-instead,
71-
# valispace rules: most of these rules should be enabled
72-
# eventually and some can be defined as "warnings" later
73-
# if you add something here try to explain why
74-
missing-module-docstring, # we're currently not using docstrings
71+
# valispace rules: most of these rules should be enabled
72+
# eventually and some can be defined as "warnings" later
73+
# if you add something here try to explain why
74+
missing-module-docstring, # we're currently not using docstrings
7575
missing-function-docstring,
7676
missing-class-docstring,
7777
empty-docstring,
7878
too-many-ancestors,
7979
import-outside-toplevel,
8080
logging-fstring-interpolation,
8181
unused-variable,
82-
no-member, # usually fails with django things :(
82+
no-member, # usually fails with django things :(
8383
bare-except,
8484
fixme,
8585
wrong-import-position,
8686
logging-format-interpolation,
8787
invalid-name,
8888
broad-except,
89-
# pointless-string-statement, # this thing can be a missing return (it was in a case I found)
90-
unused-wildcard-import, # enable once log is cleaner
91-
unused-import, # enable once log is cleaner
92-
missing-final-newline, # enable once log is cleaner
93-
wildcard-import, # enable once log is cleaner
94-
wrong-import-order, # enable once log is cleaner
95-
line-too-long, # enable once log is cleaner
96-
#unused-argument, # enable once log is cleaner
97-
too-many-statements, # enable once log is cleaner
98-
too-many-branches, # enable once log is cleaner
99-
#trailing-newlines, # enable once log is cleaner
100-
#protected-access, # enable once log is cleaner
101-
unidiomatic-typecheck, # enable once log is cleaner
102-
#multiple-imports, # enable once log is cleaner
103-
#ungrouped-imports, # enable once log is cleaner
104-
#raise-missing-from, # enable once log is cleaner
105-
#redefined-outer-name, # enable once log is cleaner
106-
#unnecessary-comprehension, # enable once log is cleaner
107-
#consider-using-set-comprehension, # enable once log is cleaner
108-
#no-self-use, # enable once log is cleaner (should be static)
10989
super-with-arguments,
11090
too-few-public-methods,
11191
too-many-locals,
@@ -114,11 +94,8 @@ disable=raw-checker-failed,
11494
too-many-nested-blocks,
11595
too-many-arguments,
11696
too-many-instance-attributes,
117-
#abstract-method,
11897
arguments-differ,
11998
attribute-defined-outside-init,
120-
#eval-used,
121-
#unnecessary-pass,
12299
signature-differs,
123100
imported-auth-user,
124101

@@ -191,10 +168,10 @@ ignore-comments=yes
191168
ignore-docstrings=yes
192169

193170
# Ignore imports when computing similarities.
194-
ignore-imports=no
171+
ignore-imports=yes
195172

196173
# Minimum lines number of a similarity.
197-
min-similarity-lines=4
174+
min-similarity-lines=10
198175

199176
[LOGGING]
200177

@@ -318,7 +295,7 @@ indent-string=' '
318295
max-line-length=120
319296

320297
# Maximum number of lines in a module.
321-
max-module-lines=3000
298+
max-module-lines=3600
322299

323300
# Allow the body of a class to be on the same line as the declaration if body
324301
# contains single statement.

0 commit comments

Comments
 (0)