-
Notifications
You must be signed in to change notification settings - Fork 0
/
pylint
129 lines (92 loc) · 3.67 KB
/
pylint
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
[MASTER]
# Specify a configuration file.
# rcfile=
# Python code to execute, usually for sys.path manipulation such as
# pygtk.require().
# init-hook=
# Add <file or directory> to the black list. It should be a base name, not a
# path. You may set this option multiple times.
ignore=migrations
# Pickle collected data for later comparisons.
persistent=yes
# List of plugins (as comma separated values of python modules names) to load,
# usually to register additional checkers.
load-plugins=pylint_django
[MESSAGES CONTROL]
# Enable the message, report, category or checker with the given id(s).
enable=all
# Disable specific messages that are too verbose or irrelevant.
disable=too-few-public-methods,too-many-arguments,too-many-locals,invalid-name,consider-using-f-string
[REPORTS]
# Set the output format. Available formats are text, parseable, colorized, msvs
# (visual studio) and html.
output-format=text
# Tells whether to display a full report or only the messages.
reports=yes
# Evaluation for the global evaluation report.
evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
[VARIABLES]
# Tells whether we should check for unused import in __init__ files.
init-import=no
# A regular expression matching names used for dummy variables (i.e. not used).
dummy-variables-rgx=_$|unused_|dummy_
# List of additional names supposed to be defined in builtins.
additional-builtins=HttpResponse,JsonResponse,APIView,ViewSet,Serializer
[BASIC]
# Regular expression which should only match correct module names.
module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
# Regular expression which should only match correct class names.
class-rgx=[A-Z_][a-zA-Z0-9]+$
# Regular expression which should only match correct function names.
function-rgx=^[a-z_][a-z0-9_]*$
# Regular expression which should only match correct instance attribute names.
attr-rgx=^_{0,2}[a-z][a-z0-9_]*$
# Regular expression which should only match correct argument names.
argument-rgx=^[a-z][a-z0-9_]*$
# Regular expression which should only match correct variable names.
variable-rgx=^[a-z][a-z0-9_]*$
# Good variable names which should always be accepted.
good-names=i,j,k,ex,main,Run,_
# Bad variable names which should always be refused.
bad-names=map,filter,apply,input,reduce,foo,bar,baz,toto,tutu,tata
# Minimum length for a docstring.
docstring-min-length=10
[MISCELLANEOUS]
# List of note tags to take into consideration, separated by a comma.
notes=FIXME,XXX,TODO
[FORMAT]
# Maximum number of characters on a single line.
max-line-length=120
# Maximum number of lines in a module.
max-module-lines=1000
# String used as indentation unit.
indent-string=' '
[SIMILARITIES]
# Minimum lines number of a similarity.
min-similarity-lines=4
# Ignore comments when computing similarities.
ignore-comments=yes
# Ignore docstrings when computing similarities.
ignore-docstrings=yes
[TYPECHECK]
# Tells whether missing members accessed in mixin class should be ignored.
ignore-mixin-members=yes
[DESIGN]
# Maximum number of arguments for function / method.
max-args=6
# Maximum number of locals for function / method body.
max-locals=15
# Maximum number of statements in function / method body.
max-statements=50
# Minimum number of public methods for a class.
min-public-methods=2
# Maximum number of public methods for a class.
max-public-methods=15
[IMPORTS]
# Deprecated modules which should not be used.
deprecated-modules=regsub,string
[CLASSES]
# List of method names used to declare (i.e. assign) instance attributes.
defining-attr-methods=__init__,__new__,setUp
# List of class names to ignore for checking (useful for classes with attributes dynamically set).
ignored-classes=CustomManager,CustomQuerySet