generated from pierrz/papel
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pylintrc
41 lines (35 loc) · 911 Bytes
/
.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
# based on https://www.getcodeflow.com/pylint-configuration.html
[MASTER]
# 4 threads for 2 cores, change at will
jobs=4
fail-under=8.0
disable= import-error # fix import errors when using the dev environment
# some troublesome files to exclude, to avoid 'maximum recursion depth exceeded' errors
ignore=
.venv,
venv,
.git,
__pycache__,
logs,
conf,
data
[REPORTS]
reports=yes
score=yes
evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
output-format=text
msg-template={path}:{line}:{column}: {msg_id}: {msg} ({symbol})
[MESSAGES CONTROL]
# avoid too long reports (even after formatting with yapf)
disable=
line-too-long,
too-few-public-methods, # refactorize on that
fixme # in due time ...
[FORMAT]
# pep8
max-line-length=79
[REFACTORING]
max-nested-blocks=5
[DESIGN]
max-args=5
max-attributes=7