-
Notifications
You must be signed in to change notification settings - Fork 14
/
.pylintrc
87 lines (68 loc) · 2.59 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
[MASTER]
# Optional list of files or directories that should not be checked
ignore=docs/*,venv/*
# A list of plugins to load, usually to register additional checker.
load-plugins=pylint_flask,pylint_django,pylint_autopep8
[MESSAGES CONTROL]
# Enable the following messages for better code quality
# convention: for coding standard violations (C)
# refactor: for refactoring suggestions (R)
# warning: for code that may cause problems in the future (W)
# error: for code that is definitely incorrect (E)
# fatal: for code that cannot be executed (F)
enable=C,R,W,E,F
[BASIC]
# Specify the indent string to use
indent-string=' '
[FORMAT]
# Maximum number of characters allowed in a single line
max-line-length=120
[TYPECHECK]
# List of class names for which member attributes and methods should not be checked
ignored-classes=_ABCMeta
[VARIABLES]
# Check for unused import
init-import=yes
[SIMILARITIES]
# Minimum number of similar lines to trigger a message
min-similarity-lines=4
ignore-comments=yes
[TYPING]
# Ignore mixin methods in type checks
ignore-mixin-members=yes
[LOGGING]
# Logging modules to check for best practices
logging-modules=logging
; [LOGGING.HANDLER]
; # Disable existing loggers
; disable-existing-loggers=yes
[DESIGN]
# Maximum number of arguments allowed in a function or method
max-args=10
; [EXCEPTIONS]
; # Specify the exceptions to catch in try/except blocks
; exception-msg-template='{module}.{function}: {message}'
; [CLASSES]
; # Maximum number of methods allowed in a class
; max-methods=20
[REPORTS]
# Set the output format. Available formats are text, parseable, colorized, msvs
# (visual studio) and html
output-format=colorized
; # Include message's id in output
; include-ids=yes
# Put messages in a separate file for each module / package specified on the
# command line instead of printing them on stdout. Reports (if any) will be
# written in a file name "pylint_global.[txt|html]".
; files-output=no
# Tells wether to display a full report or only the messages
reports=yes
# Python expression which should return a note less than 10 (10 is the highest
# note). You have access to the variables errors warning, statement which
# respectivly contain the number of errors / warnings messages and the total
# number of statements analyzed. This is used by the global evaluation report
# (R0004).
evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
# Add a comment according to your evaluation note. This is used by the global
# evaluation report (R0004).
; comment=no