This repository has been archived by the owner on Aug 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pylintrc
191 lines (154 loc) · 5.28 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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
# Pylint configuration
# For list of all global options see:
# https://pylint.readthedocs.io/en/latest/technical_reference/features.html
[GENERAL]
extension-pkg-whitelist=PyQt5
[MESSAGES CONTROL]
# 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".
disable=unpacking-in-except,
import-star-module-level,
non-ascii-bytes-literal,
parameter-unpacking,
long-suffix,
old-octal-literal,
old-ne-operator,
backtick,
old-raise-syntax,
print-statement,
deprecated-types-field,
deprecated-itertools-function,
deprecated-string-function,
deprecated-operator-function,
deprecated-sys-function,
deprecated-urllib-function,
xreadlines-attribute,
metaclass-assignment,
next-method-called,
dict-iter-method,
dict-view-method,
exception-message-attribute,
eq-without-hash,
indexing-exception,
bad-python3-import,
raising-string,
standarderror-builtin,
comprehension-escape,
exception-escape,
deprecated-str-translate-call,
using-cmp-argument,
cmp-method,
coerce-method,
delslice-method,
div-method,
getslice-method,
hex-method,
idiv-method,
nonzero-method,
oct-method,
rdiv-method,
setslice-method,
apply-builtin,
basestring-builtin,
buffer-builtin,
cmp-builtin,
coerce-builtin,
dict-items-not-iterating,
dict-keys-not-iterating,
dict-values-not-iterating,
old-division,
execfile-builtin,
file-builtin,
filter-builtin-not-iterating,
no-absolute-import,
input-builtin,
intern-builtin,
long-builtin,
map-builtin-not-iterating,
next-method-defined,
invalid-str-codec,
range-builtin-not-iterating,
raw_input-builtin,
reduce-builtin,
reload-builtin,
round-builtin,
sys-max-int,
unichr-builtin,
unicode-builtin,
xrange-builtin,
zip-builtin-not-iterating,
use-symbolic-message-instead,
missing-module-docstring,
bad-continuation,
broad-except
# Enable the message, report, category or checker with the given id(s). You can
# either give multiple identifier separated by comma (,) or put this option
# multiple time (only on the command line, not in the configuration file where
# it should appear only once). See also the "--disable" option for examples.
enable=c-extension-no-member
[BASIC]
# Naming style matching correct argument names.
argument-naming-style=snake_case
# Naming style matching correct attribute names.
attr-naming-style=snake_case
# Bad variable names which should always be refused, separated by a comma.
bad-names=
# Naming style matching correct class attribute names.
class-attribute-naming-style=snake_case
# Naming style matching correct class names.
class-naming-style=PascalCase
# Naming style matching correct constant names.
const-naming-style=UPPER_CASE
# Naming style matching correct function names.
function-naming-style=snake_case
# Good variable names which should always be accepted, separated by a comma.
good-names=i,
j,
k,
n,
s,
x,
y,
z,
_,
ip
# Naming style matching correct inline iteration names.
inlinevar-naming-style=snake_case
# Naming style matching correct method names.
method-naming-style=snake_case
# Naming style matching correct module names.
module-naming-style=snake_case
# Regular expression which should only match function or class names that do
# not require a docstring.
no-docstring-rgx=^_
# List of decorators that produce properties, such as abc.abstractproperty. Add
# to this list to register other decorators that produce valid properties.
# These decorators are taken in consideration only for invalid-name.
property-classes=abc.abstractproperty
# Naming style matching correct variable names.
variable-naming-style=snake_case
[FORMAT]
# Expected format of line ending, e.g. empty (any line ending), LF or CRLF.
expected-line-ending-format=LF
# Maximum number of characters on a single line.
max-line-length=88
# Maximum number of lines in a module.
max-module-lines=600
[LOGGING]
# Format style used to check logging format string. `old` means using %
# formatting, `new` is for `{}` formatting and `fstr` is for f-strings.
logging-format-style=new
[MISCELLANEOUS]
# List of note tags to take in consideration, separated by a comma.
notes=FIXME,
TODO
[REFACTORING]
# Maximum number of nested blocks for function / method body
max-nested-blocks=4