-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathpylintrc
79 lines (52 loc) · 2.16 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
[MASTER]
# Allow loading of arbitrary C extensions. Extensions are imported into the
# active Python interpreter and may run arbitrary code.
unsafe-load-any-extension=yes
[MESSAGES CONTROL]
# Disable the message, report, category or checker with the given id(s)
disable=invalid-name,len-as-condition,missing-docstring,too-many-return-statements,too-many-branches,import-outside-toplevel,too-many-public-methods,abstract-method,unsubscriptable-object,too-many-instance-attributes,consider-using-enumerate,cyclic-import,consider-using-f-string
[REPORTS]
# Tells whether to display a full report or only the messages
reports=no
# Activate the evaluation score.
score=no
[REFACTORING]
# Maximum number of nested blocks for function / method body
max-nested-blocks=5
[VARIABLES]
# List of additional names supposed to be defined in builtins. Remember that
# you should avoid to define new builtins when possible.
additional-builtins=
# A regular expression matching the name of dummy variables (i.e. expectedly
# not used).
dummy-variables-rgx=_+$|(_[a-zA-Z0-9_]*[a-zA-Z0-9]+?$)|dummy|^ignored_|^unused_
# Tells whether we should check for unused import in __init__ files.
#init-import=yes
[TYPECHECK]
# List of members which are set dynamically and missed by pylint inference
# system, and so shouldn't trigger E1101 when accessed. Python regular
# expressions are accepted.
generated-members=query,commit,add,delete,flush,rollback,expire_all
[FORMAT]
# Expected format of line ending, e.g. empty (any line ending), LF or CRLF.
expected-line-ending-format=LF
# Maximum number of characters on a single line.
max-line-length=120
[DESIGN]
# Maximum number of arguments for function / method
max-args=10
# Maximum number of statements in function / method body
max-statements=150
# Maximum number of locals for function / method body
max-locals=30
# Maximum number of lines in a module
max-module-lines=1100
[SIMILARITIES]
# Minimum lines number of a similarity.
min-similarity-lines=50
# Ignore comments when computing similarities.
ignore-comments=yes
# Ignore docstrings when computing similarities.
ignore-docstrings=yes
# Ignore imports when computing similarities.
ignore-imports=no