-
Notifications
You must be signed in to change notification settings - Fork 17
/
pylintrc
103 lines (70 loc) · 2.8 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
[MASTER]
# Add files or directories to the blacklist. They should be base names, not
# paths.
ignore=.git,libs,vendor,versioneer.py, _version.py, remake_pyconly_wheel.py
# Ignore the following third party modules.
ignored-modules=skimage.metrics # due to lazy-loading
# List of plugins (as comma separated values of python modules names) to load,
# usually to register additional checkers.
load-plugins=
[MESSAGES CONTROL]
disable=fixme, # comment containing FIXME, XXX, or TODO
invalid-name,
locally-disabled, # disable= used
missing-docstring,
too-few-public-methods,
too-many-arguments,
too-many-instance-attributes,
too-many-locals,
wrong-import-order,
#line-break-before-binary-operator,
C0328,
W1514,
consider-using-f-string
# A comma-separated list of package or module names from where C extensions may
# be loaded. Extensions are loading into the active Python interpreter and may
# run arbitrary code.
extension-pkg-whitelist=cv2
generated-members=cv2.*
[REPORTS]
# Set the output format. Available formats are text, parseable, colorized, msvs
# (visual studio) and html. You can also give a reporter class, eg
# mypackage.mymodule.MyReporterClass.
output-format=text
# Tells whether to display a full report or only the messages
reports=no
msg-template={abspath}:{line} - [{msg_id}:({symbol}), {obj}] {msg}
[FORMAT]
max-line-length=100
max-module-lines=1000
# Regexp for a line that is allowed to be longer than the limit.
ignore-long-lines=^(\s*(# )?<?https?://\S+>?|.*u'//.+)$
# Expected format of line ending, e.g. empty (any line ending), LF or CRLF.
expected-line-ending-format=LF
[BASIC]
# Colon-delimited sets of names that determine each other's naming style when
# the name regexes allow several styles.
name-group=
# Regular expression matching correct function names
function-rgx=[a-z_][a-z0-9_]{2,40}$
# Regular expression matching correct variable names
variable-rgx=[A-Za-z_][A-Za-z0-9_]{0,30}$
# Regular expression matching correct constant names
const-rgx=(([A-Z_][A-Za-z0-9_]*)|(__.*__))$
# Regular expression matching correct attribute names
attr-rgx=[a-z_][a-z0-9_]{0,30}$
# Regular expression matching correct argument names
argument-rgx=[A-Za-z_][a-z0-9_]{0,30}$
# Regular expression matching correct class attribute names
class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{0,30}|(__.*__))$
# Regular expression matching correct inline iteration names
inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
# Regular expression matching correct class names
class-rgx=[A-Z_][a-zA-Z0-9]+$
# Regular expression matching correct module names
module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
# Regular expression matching correct method names
method-rgx=[a-z_][a-z0-9_]{1,40}$
[SIMILARITIES]
min-similarity-lines=8
ignore-imports=yes