forked from beancount/beancount
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pylintrc
154 lines (125 loc) · 4.17 KB
/
.pylintrc
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
# module-name-hint, method-name-hint, class-name-hint, class-attribute-name-hint,
# inlinevar-name-hint, variable-name-hint, const-name-hint, attr-name-hint,
# argument-name-hint, function-name-hint, no-space-check
[MASTER]
ignore=
BUILD
persistent=yes
load-plugins=pylint_protobuf
[REPORTS]
output-format=text
# Tells whether to display a full report or only the messages
reports=no
[MESSAGES CONTROL]
enable=all
# Disable the message, report, category or checker with the given id(s). You
# can either give multiple identifiers separated by comma (,) or put this
# option multiple times (only on the command line, not in the configuration
# file where it should appear only once).You can also use "--disable=all" to
# disable everything first and then reenable specific checks. For example, if
# you want to run only the similarities checker, you can use "--disable=all
# --enable=similarities". If you want to run only the classes checker, but have
# no Warning level messages displayed, use"--disable=all --enable=classes
# --disable=W"
# I like most of these... reenable one by one.
disable=locally-disabled,
suppressed-message,
missing-docstring,
too-many-lines,
multiple-statements,
superfluous-parens,
ungrouped-imports,
wrong-import-position,
no-self-argument,
no-member,
no-value-for-parameter,
too-many-function-args,
unsubscriptable-object,
too-many-nested-blocks,
duplicate-code,
too-few-public-methods,
too-many-public-methods,
too-many-branches,
too-many-arguments,
too-many-locals,
too-many-statements,
attribute-defined-outside-init,
protected-access,
arguments-differ,
abstract-method,
fixme,
global-variable-undefined,
global-statement,
unused-variable,
unused-argument,
redefined-outer-name,
redefined-builtin,
undefined-loop-variable,
broad-except,
logging-format-interpolation,
anomalous-backslash-in-string,
len-as-condition,
no-else-return,
invalid-unary-operand-type,
no-name-in-module,
inconsistent-return-statements,
not-callable,
stop-iteration-return,
assignment-from-no-return,
c-extension-no-member,
cyclic-import,
isinstance-second-argument-not-valid-type,
inherit-non-class,
consider-using-f-string,
consider-using-with,
unspecified-encoding,
arguments-renamed,
consider-using-dict-items,
global-variable-not-assigned,
useless-suppression,
unused-private-member,
use-maxsplit-arg,
unnecessary-lambda-assignment,
use-dict-literal,
[VARIABLES]
# Tells whether we should check for unused import in __init__ files.
init-import=no
# A regular expression matching the name of dummy variables (i.e. expectedly
# not used).
dummy-variables-rgx=_$|dummy
# List of additional names supposed to be defined in builtins. Remember that
# you should avoid to define new builtins when possible.
additional-builtins=
[TYPECHECK]
# Tells whether missing members accessed in mixin class should be ignored. A
# mixin class is detected if its name ends with "mixin" (case insensitive).
ignore-mixin-members=yes
# List of module names for which member attributes should not be checked
# (useful for modules/projects where namespaces are manipulated during runtime
# and thus existing member attributes cannot be deduced by static analysis
ignored-modules=
# List of classes names for which member attributes should not be checked
# (useful for classes with attributes dynamically set).
ignored-classes=
# List of members which are set dynamically and missed by pylint inference
# system, and so shouldn't trigger E0201 when accessed. Python regular
# expressions are accepted.
#generated-members=REQUEST,acl_users,aq_parent
generated-members=
[LOGGING]
# Logging modules to check that the string format arguments are in logging
# function parameter format
logging-modules=logging
[MISCELLANEOUS]
# List of note tags to take in consideration, separated by a comma.
notes=FIXME,XXX,TODO
[BASIC]
good-names=f,i,j,k,ex,_
argument-rgx=(_?[a-z_][a-z0-9_]{1,30}|__|mu)$
attr-rgx=[a-z_][a-z0-9_]{1,30}$
function-rgx=_?[a-z_][a-zA-Z0-9_]{2,64}$
method-rgx=[a-z_][a-zA-Z0-9_]{2,72}$
module-rgx=(([a-z_][a-z0-9_\-]*)|([A-Z][a-zA-Z0-9]+))$
variable-rgx=(_?[a-z_][a-z0-9_]{1,30}|__|mu|no)$
[FORMAT]
max-line-length=92