-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.pylintrc
132 lines (99 loc) · 2.78 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
131
132
# -*- Mode: conf; tab-width: 4; indent-tabs-mode: nil; coding: utf-8 -*-
[MASTER]
# Python code to execute, usually for sys.path manipulation
# init-hook=
# Add files or directories matching the regex patterns to the blacklist.
ignore-patterns=
# Pickle collected data for later comparisons.
persistent=no
# Use multiple processes to speed up Pylint.
jobs=1
# Allow loading of arbitrary C extensions
unsafe-load-any-extension=no
# A comma-separated list of package/module names from where C extensions may be loaded.
extension-pkg-whitelist=
# List of plugins (as comma-separated values) to load.
load-plugins=
[MESSAGES CONTROL]
# Disable all messages and enable specific ones.
disable=all
enable=abstract-class-instantiated,
access-member-before-definition,
assert-on-tuple,
bad-exception-context,
bad-open-mode,
bad-format-string,
catching-non-exception,
duplicate-key,
duplicate-argument-name,
eval-used,
exec-used,
global-variable-not-assigned,
inherit-non-class,
invalid-slots,
invalid-all-object,
logging-format-truncated,
misplaced-bare-raise,
raising-non-exception,
return-in-init,
unreachable,
unsubscriptable-object,
unsupported-binary-operation,
unused-format-string-argument,
useless-else-on-loop,
yield-outside-function,
relative-import
[REPORTS]
# Set the output format
output-format=text
# No full reports; just show messages
reports=no
[FORMAT]
# Maximum number of characters on a single line
max-line-length=88
# Allow URLs and comments longer than the line limit
ignore-long-lines=^\s*(# )?<?https?://\S+>?$
# Indentation settings
indent-string=' '
indent-after-paren=4
# Maximum number of lines in a module
max-module-lines=2000
[BASIC]
# Bad functions that shouldn't be used
bad-functions=map,filter,input
# Regular expressions for naming conventions
function-rgx=[a-z_][a-z0-9_]{2,30}$
variable-rgx=[a-z_][a-z0-9_]{2,30}$
const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$
method-rgx=[a-z_][a-z0-9_]{2,30}$
class-rgx=[A-Z_][a-zA-Z0-9]+$
# Good variable names
good-names=i,j,k,ex,_,x
[VARIABLES]
# Names of dummy variables
dummy-variables-rgx=_$|dummy
[IMPORTS]
# Known third-party libraries
known-third-party=enchant
[DESIGN]
# Design constraints for functions and classes
max-args=10
max-locals=30
max-returns=6
max-branches=12
max-statements=50
max-parents=7
max-attributes=7
min-public-methods=0
max-public-methods=20
[TYPECHECK]
# List of ignored modules and classes
ignored-modules=
ignored-classes=optparse.Values,thread._local,_thread._local
[LOGGING]
# Logging modules
logging-modules=logging
[SIMILARITIES]
# Ignore comments and docstrings when detecting duplicate code
ignore-comments=yes
ignore-docstrings=yes