forked from tartiflette/tartiflette
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pylintrc
130 lines (99 loc) · 3.36 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
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
[MASTER]
# List of plugins (as comma separated values of python module names) to load,
# usually to register additional checkers.
load-plugins=pylint.extensions.docparams,pylint.extensions.docstyle,pylint.extensions.mccabe
[MESSAGES CONTROL]
# Disable the message, report, category or checker with the given id(s). You
# can either give multiple identifiers separated by comma (,) or put this
# option multiple times (only on the command line, not in the configuration
# file where it should appear only once). You can also use "--disable=all" to
# disable everything first and then reenable specific checks. For example, if
# you want to run only the similarities checker, you can use "--disable=all
# --enable=similarities". If you want to run only the classes checker, but have
# no Warning level messages displayed, use "--disable=all --enable=classes
# --disable=W".
disable=missing-docstring,
undefined-variable,
locally-disabled,
duplicate-code,
too-few-public-methods,
bad-builtin,
abstract-method,
global-statement,
logging-format-interpolation,
trailing-whitespace,
line-too-long,
cyclic-import,
useless-return,
docstring-first-line-empty,
missing-raises-doc,
raise-missing-from,
consider-using-f-string,
no-self-use,
missing-param-doc,
redundant-returns-doc
[REPORTS]
# Set the output format. Available formats are text, parseable, colorized, json
# and msvs (visual studio). You can also give a reporter class, e.g.
# mypackage.mymodule.MyReporterClass.
output-format=colorized
[FORMAT]
# String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
# tab).
indent-string=' '
# Maximum number of characters on a single line.
max-line-length=80
# Maximum number of lines in a module.
max-module-lines=1500
[BASIC]
# Bad variable names which should always be refused, separated by a comma.
bad-names=foo,
bar,
baz,
toto,
tutu,
tata,
coucou
# Regular expression matching correct class attribute names. Overrides class-
# attribute-naming-style.
class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{1,40}|(__.*__))$
# Regular expression matching correct function names. Overrides function-
# naming-style.
function-rgx=[a-z_][a-z0-9_]{2,50}$
# Good variable names which should always be accepted, separated by a comma.
good-names=_,
__,
___,
e,
i,
j,
k,
sq,
fn,
fh,
js,
ts,
rx,
logger
# Regular expression matching correct method names. Overrides method-naming-
# style.
method-rgx=[a-z_][a-z0-9_]{2,50}$
[MISCELLANEOUS]
# List of note tags to take in consideration, separated by a comma.
notes=FIXME,
NINJA
[DESIGN]
# Maximum number of arguments for function / method.
max-args=10
# Maximum number of attributes for a class (see R0902).
max-attributes=15
# Maximum number of branch for function / method body.
max-branches=12
# Maximum number of locals for function / method body.
max-locals=15
# Maximum number of public methods for a class (see R0904).
max-public-methods=30
# Maximum number of return / yield for function / method body.
max-returns=10
# Maximum number of statements in function / method body.
max-statements=100