-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pylintrc
More file actions
114 lines (101 loc) · 3.58 KB
/
.pylintrc
File metadata and controls
114 lines (101 loc) · 3.58 KB
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
[MASTER]
# A comma-separated list of file extensions to check
extension-pkg-whitelist=
ignore=CVS
jobs=1
persistent=yes
unsafe-load-any-extension=no
[MESSAGES CONTROL]
# Enable/disable message, report, category or checker
disable=C0111,C0103,C0330,C0326,W0511,R0903,R0913,R0914,R0902,E1101,W0212,C0200,C0202,W0703,W0102,W0201,W0613,W0621,W0622,W0612,W0603,W0614,R0201,R0915,R0912,R0911,R0904
[REPORTS]
# Python expression which should return a score less than or equal to 10
evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
output-format=text
files-output=no
reports=yes
score=yes
[REFACTORING]
max-nested-blocks=5
[BASIC]
# Regular expression matching correct argument names
argument-rgx=[a-z_][a-z0-9_]{0,30}$
# Regular expression matching correct attribute names
attr-rgx=[a-z_][a-z0-9_]{0,30}$
# Regular expression matching correct class attribute names
class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{0,30}|(__.*__))$
# Regular expression matching correct class names
class-rgx=[A-Z_][a-zA-Z0-9]+$
# Regular expression matching correct constant names
const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$
[FORMAT]
# Maximum number of characters on a single line
max-line-length=88
# Maximum number of lines in a module
max-module-lines=1000
# Allow string concatenation with + operator
no-space-check=trailing-comma,dict-separator
# String used as indentation unit
indent-string=' '
# Number of spaces of indent required inside a hanging or continued line
indent-after-paren=4
# Expected format of line ending
expected-line-ending-format=
[LOGGING]
# Format style used to check logging format string
logging-format-style=old
# Logging modules to check that the string format arguments are in logging function parameter format
logging-modules=logging
[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
# Ignore imports when computing similarities
ignore-imports=no
[TYPECHECK]
# List of members which are set dynamically
generated-members=REQUEST,acl_users,aq_parent
[VARIABLES]
# Whether we should check for unused import in __init__ files
init-import=no
# List of strings which can identify a callback function by name
callbacks=cb_,_cb
# List of qualified module names which can have objects that can redefine builtins
redefining-builtins-modules=six.moves,past.builtins,future.builtins
[CLASSES]
# Whether to warn about protected member access
protect-private=yes
# Whether to warn about mixin members
ignore-mixin-members=yes
[DESIGN]
# Maximum number of arguments for function / method
max-args=5
# Maximum number of locals for function / method body
max-locals=15
# Maximum number of return / yield for function / method body
max-returns=6
# Maximum number of branch for function / method body
max-branches=12
# Maximum number of statements in function / method body
max-statements=50
# Maximum number of parents for a class (see R0901).
max-parents=7
# Maximum number of attributes for a class (see R0902).
max-attributes=11
# Minimum number of public methods for a class (see R0903).
min-public-methods=2
# Maximum number of public methods for a class (see R0904).
max-public-methods=20
[IMPORTS]
# Allow wildcard imports from modules that define __all__
allow-wildcard-with-all=no
# Analyse import fallback blocks.
analyse-fallback-blocks=no
# Deprecated modules which should not be used, separated by a comma
deprecated-modules=optparse,tkinter.tix
[EXCEPTIONS]
# Exceptions that will emit a warning when being caught
overgeneral-exceptions=Exception