-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.pylintrc
More file actions
251 lines (175 loc) · 5.73 KB
/
.pylintrc
File metadata and controls
251 lines (175 loc) · 5.73 KB
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
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
# pylintrc - EcoFOCIpy Code Quality Configuration
# Lint configuration for maintaining code quality standards
[MASTER]
# List of plugins
load-plugins=
# Minimum Python version to target
py-version=3.8
# Pickle collected data for later comparisons
persistent=yes
# Jobs to run in parallel
jobs=1
# Path to file with regular expressions to exclude from analysis
# ignore-paths=
# List of files or directories to be skipped
ignore=
.git,
.venv,
venv,
build,
dist,
.eggs,
__pycache__,
.pytest_cache,
.ipynb_checkpoints
# Add files or directories matching the regular expressions patterns to the ignore-list
ignore-patterns=
^\..+
[MESSAGES CONTROL]
# Disable specific warnings and conventions for cleaner output
disable=
# Convention (C) - Code style best practices
missing-docstring,
too-few-public-methods,
too-many-arguments,
too-many-instance-attributes,
too-many-locals,
# Refactor (R) - Refactoring suggestions
too-many-branches,
too-many-statements,
duplicate-code,
# Warning (W) - Important but non-critical
fixme,
suppressed-message,
file-ignored,
# Informational (I)
information-report,
# Enable by default: E (errors), F (fatal)
# Enable specific categories
enable=
all
[REPORTS]
# Set score threshold for project assessment
fail-under=8.0
# Output format
output-format=colorized
# Include message's id in output
include-ids=yes
# Include evaluation statistics
reports=yes
# Evaluation score calculation
# score=yes
[FORMAT]
# Maximum number of characters on a single line
max-line-length=88
# Regexp for a line that is considered to be a marker for pragma directives
indent-after-paren=4
# String used as indentation unit
indent-string=' '
# Number of spaces of indentation after continuation lines
continuation-indent-string=' '
# Expected format of line ending, especially useful when checking scripts
expected-line-ending-type=LF
[LOGGING]
# Log format
logging-format-style=new
# Logging modules to check
logging-modules=logging
[VARIABLES]
# List of strings which can identify a callback function by name
callbacks=cb_, _cb
# A regular expression matching names should start with a lowercase letter
# and no additional constraints
good-names=i, j, k, ex, _, __, x, y, z, df, fig, ax, axes
# Regular expression for names allowed in the global scope
const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__)|(_.*)|([a-z_][a-z0-9_]*))$
# Regular expression for names allowed as class attributes
attr-rgx=[a-z_][a-z0-9_]*$
# Regular expression for private names
private-attr-rgx=_[a-z0-9_]*$
[TYPECHECK]
# List of strings which can identify typing stub packages
typing-modules=typing
# List of tuple (name, regex) of decorators that skipped typing
skip-on-functions=
setup,
setUp,
tearDown
[DESIGN]
# Maximum number of attributes for class
max-attributes=7
# Minimum number of public methods for a class
min-public-methods=2
# Maximum number of public methods for a class
max-public-methods=20
# Maximum number of return/yield per function
max-returns=6
# Maximum number of branch for function
max-branches=12
# Maximum number of statements in function body
max-statements=50
# Maximum number of parents for a class (Max MRO length)
max-parents=7
# Maximum number of positional arguments for function
max-args=5
# Maximum number of local variables in function
max-locals=15
# List of callable names which should always be considered as having protected access
callbacks=cb_,_cb
[SIMILARITIES]
# Minimum lines number d emitted by the similarities checker
min-similarity-lines=4
# Ignore comments when computing similarities
ignore-comments=yes
# Ignore docstrings when computing similarities
ignore-docstrings=yes
# Ignore imports when computing similarities
ignore-imports=yes
# List of decorators that define properties (used to avoid false positives)
property-defined-in-init=yes
[BASIC]
# Good variable names which should always be accepted, separated by a comma
good-names=i,j,k,ex,_,__,x,y,z,df,fig,ax,axes
# Bad variable names which should always be rejected, separated by a comma
bad-names=foo,baz,toto,tutu,tata
# Regular expression matching correct variable names
variable-rgx=[a-z_][a-z0-9_]*$
# Regular expression matching correct constant names
# (with letters only, separated by underscores)
const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__)|(_.*)|([a-z_][a-z0-9_]*))$
# Regular expression matching correct function names
function-rgx=[a-z_][a-z0-9_]*$
# Regular expression matching correct class names
class-rgx=[A-Z_][a-zA-Z0-9]*$
# Regular expression matching correct method names
method-rgx=[a-z_][a-z0-9_]*$
# Regular expression for names meant to be private (with leading underscore)
private-rgx=(_.*|__.*__|.*___)$
# Regular representation for acceptable module names
module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
# Regular expression for docstring names
docstring-rgx=^__
# Naming style enforcing snake_case
# name-group and name-style are not applicable anymore
[MISCELLANEOUS]
# List of note tags to take in consideration separated by a comma
notes=FIXME,XXX,TODO
# Regular expression of note tags to take in consideration
notes-rgx=(FIXME|XXX|TODO)
# Maximum string usages in a module
# max-string-usages=
[SPELLING]
# Spelling dictionary name
spelling-dict=en_US
# List of comma separated words that should be considered as private
# spelling-private-word-list=
[PARAMETER_DOCUMENTATION]
# Whether to accept totally empty docstrings (default: no).
accept-empty-docstring=no
# Default docstring format
default-docstring-type=
[ANALYSIS RUN]
# Regex pattern for a file name to analyze recursively
include-and-exclude-pattern=(.*\.py|.*\.pyi)$
# Only compute a score if all linting categories are computed
compute-score-with-all-categories=no