forked from rotki/rotki
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pylint.rc
162 lines (141 loc) · 4.16 KB
/
.pylint.rc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
[MASTER]
jobs=4
persistent=yes
suggestion-mode=yes
unsafe-load-any-extension=no
init-hook="import sys; sys.path.append('.')"
load-plugins=tools.pylint.log_checker,tools.pylint.not_checker,pylint.extensions.comparison_placement, pylint.extensions.consider_refactoring_into_while_condition
# Blacklist files or directories (basenames, not paths)
ignore=
# blacklist files or directories by regex (basenames, not paths)
ignore-patterns=
[EXCEPTIONS]
overgeneral-exceptions=builtins.Exception
[BASIC]
bad-names=foo,bar,baz,toto,tutu,tata
good-names=i,j,k,_
[LOGGING]
logging-modules=logging
[MESSAGES CONTROL]
# These are rules we either want to completely ignore or have no time to fix yet
# disable=
# missing-module-docstring,
# missing-function-docstring,
# invalid-name,
# line-too-long,
# too-many-locals,
# missing-class-docstring,
# too-many-lines,
# too-many-arguments,
# too-many-return-statements,
# fixme,
# redefined-outer-name,
# logging-fstring-interpolation,
# arguments-differ,
# protected-access,
# too-few-public-methods,
# too-many-public-methods,
# too-many-statements,
# too-many-branches,
# unused-wildcard-import,
# too-many-instance-attributes,
# too-many-nested-blocks,
# wrong-import-position,
# attribute-defined-outside-init,
# wildcard-import,
# wrong-import-order,
# abstract-method,
# wrong-import-position, # handled by isort
# missing-module-docstring, # maybe activate in future?
# missing-class-docstring, # maybe activate in future?
# too-many-arguments, # we don't conform to certain number
# line-too-long, # already checked by others
# missing-timeout, # we already check this via ruff S113. But we skip all test files
# use-implicit-booleaness-not-comparison # we don't use implitic booleaness in the code
# When wanting to discover new things to check for comment the following line and uncomment above
disable=all
enable=
unnecessary-ellipsis,
no-value-for-parameter,
too-many-format-args,
no-member,
bad-except-order,
redefined-builtin,
unused-variable,
import-self,
useless-object-inheritance,
unused-argument,
unexpected-keyword-arg,
expression-not-assigned,
pointless-statement,
unused-import,
inconsistent-return-statements,
reimported,
too-many-function-args,
no-else-raise,
# no-else-return, # https://github.com/PyCQA/pylint/issues/8155
raise-missing-from,
useless-return,
consider-iterating-dictionary,
comparison-with-callable,
import-outside-toplevel,
redefined-outer-name,
redefined-argument-from-local,
useless-super-delegation,
super-init-not-called,
super-with-arguments,
unneeded-not,
unreachable,
unnecessary-pass,
broad-except,
unnecessary-lambda,
isinstance-second-argument-not-valid-type,
unsupported-membership-test,
confusing-with-statement,
no-else-break,
method-hidden,
chained-comparison,
consider-using-enumerate,
bare-except,
no-else-continue,
deprecated-method,
consider-using-in,
superfluous-parens,
return-in-init,
undefined-loop-variable,
assignment-from-none,
simplifiable-if-expression,
bad-super-call,
duplicate-string-formatting-argument,
misplaced-comparison-constant,
unidiomatic-typecheck,
pointless-exception-statement,
shadowed-import,
unbalanced-dict-unpacking,
positional-only-arguments-expected,
named-expr-without-context,
invalid-slice-step,
consider-refactoring-into-while-condition,
consider-using-dict-items,
comparison-with-itself,
unnecessary-comprehension,
rotki-lognokwargs,
rotki-nonbooleannot
[REPORTS]
reports=no
score=no
[FORMAT]
expected-line-ending-format=LF
ignore-long-lines=^\s*(# )?<?https?://\S+>?$
max-line-length=100
max-module-lines=1000
[VARIABLES]
callbacks=cb_,_cb
dummy-variables-rgx=_
ignored-argument-names=_.*
[TYPECHECK]
contextmanager-decorators=contextlib.contextmanager
# List of class names for which member attributes should not be checked
ignored-classes=
# List of module names for which member attributes should not be checked
ignored-modules=