cython

Форк
0
/
pylintrc 
263 строки · 7.6 Кб
1
[MASTER]
2

3
# Specify a configuration file.
4
#rcfile=
5

6
# Python code to execute, usually for sys.path manipulation such as
7
# pygtk.require().
8
#init-hook=
9

10
# Profiled execution.
11
profile=no
12

13
# Add files or directories to the ignorelist. They should be base names, not
14
# paths.
15
ignore=.git,.gitmarker
16

17
# Pickle collected data for later comparisons.
18
persistent=yes
19

20
# List of plugins (as comma separated values of python modules names) to load,
21
# usually to register additional checkers.
22
load-plugins=
23

24

25
[MESSAGES CONTROL]
26

27
# Enable the message, report, category or checker with the given id(s). You can
28
# either give multiple identifier separated by comma (,) or put this option
29
# multiple time.
30
#enable=
31

32
# Disable the message, report, category or checker with the given id(s). You
33
# can either give multiple identifier separated by comma (,) or put this option
34
# multiple time (only on the command line, not in the configuration file where
35
# it should appear only once).
36
## R0201: Method could be a function
37
## R0904: Too many public methods
38
## W0201: Attribute defined outside __init__()
39
## W0141: Used builtin function 'map'
40
disable=E1101,C0111,R0201,R0904,W0201,W0141
41

42

43
[REPORTS]
44

45
# Set the output format. Available formats are text, parseable, colorized, msvs
46
# (visual studio) and html. You can also give a reporter class, eg
47
# mypackage.mymodule.MyReporterClass.
48
output-format=parseable
49

50
# Include message's id in output
51
include-ids=yes
52

53
# Include symbolic ids of messages in output
54
symbols=no
55

56
# Put messages in a separate file for each module / package specified on the
57
# command line instead of printing them on stdout. Reports (if any) will be
58
# written in a file name "pylint_global.[txt|html]".
59
files-output=no
60

61
# Tells whether to display a full report or only the messages
62
reports=no
63

64
# Python expression which should return a note less than 10 (10 is the highest
65
# note). You have access to the variables errors warning, statement which
66
# respectively contain the number of errors / warnings messages and the total
67
# number of statements analyzed. This is used by the global evaluation report
68
# (RP0004).
69
evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
70

71
# Add a comment according to your evaluation note. This is used by the global
72
# evaluation report (RP0004).
73
comment=no
74

75

76
[MISCELLANEOUS]
77

78
# List of note tags to take in consideration, separated by a comma.
79
notes=FIXME,XXX,TODO
80

81

82
[BASIC]
83

84
# Required attributes for module, separated by a comma
85
required-attributes=
86

87
# List of builtins function names that should not be used, separated by a comma
88
bad-functions=map,filter,apply,input
89

90
# Regular expression which should only match correct module names
91
module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
92

93
# Regular expression which should only match correct module level names
94
const-rgx=(([a-zA-Z_][a-zA-Z0-9_]*)|(__.*__))$
95

96
# Regular expression which should only match correct class names
97
class-rgx=[A-Z_][a-zA-Z0-9]+$
98

99
# Regular expression which should only match correct function names
100
function-rgx=[a-z_][a-z0-9_]{2,30}$
101

102
# Regular expression which should only match correct method names
103
method-rgx=[a-z_][a-z0-9_]{2,30}|visit_[A-Za-z]+$
104

105
# Regular expression which should only match correct instance attribute names
106
attr-rgx=[a-z_][a-z0-9_]{2,30}|sy$
107

108
# Regular expression which should only match correct argument names
109
argument-rgx=[a-z_][a-z0-9_]{0,30}$
110

111
# Regular expression which should only match correct variable names
112
variable-rgx=[a-z_][a-z0-9_]{0,30}$
113

114
# Regular expression which should only match correct list comprehension /
115
# generator expression variable names
116
inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
117

118
# Good variable names which should always be accepted, separated by a comma
119
good-names=i,j,k,ex,Run,_
120

121
# Bad variable names which should always be refused, separated by a comma
122
bad-names=foo,bar,baz,toto,tutu,tata
123

124
# Regular expression which should only match functions or classes name which do
125
# not require a docstring
126
no-docstring-rgx=__.*__
127

128

129
[FORMAT]
130

131
# Maximum number of characters on a single line.
132
max-line-length=120
133

134
# Maximum number of lines in a module
135
max-module-lines=15000
136

137
# String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
138
# tab).
139
indent-string='    '
140

141

142
[SIMILARITIES]
143

144
# Minimum lines number of a similarity.
145
min-similarity-lines=4
146

147
# Ignore comments when computing similarities.
148
ignore-comments=yes
149

150
# Ignore docstrings when computing similarities.
151
ignore-docstrings=yes
152

153
# Ignore imports when computing similarities.
154
ignore-imports=no
155

156

157
[TYPECHECK]
158

159
# Tells whether missing members accessed in mixin class should be ignored. A
160
# mixin class is detected if its name ends with "mixin" (case insensitive).
161
ignore-mixin-members=yes
162

163
# List of classes names for which member attributes should not be checked
164
# (useful for classes with attributes dynamically set).
165
ignored-classes=
166

167
# When zope mode is activated, add a predefined set of Zope acquired attributes
168
# to generated-members.
169
zope=no
170

171
# List of members which are set dynamically and missed by pylint inference
172
# system, and so shouldn't trigger E0201 when accessed. Python regular
173
# expressions are accepted.
174
generated-members=REQUEST,acl_users,aq_parent
175

176

177
[VARIABLES]
178

179
# Tells whether we should check for unused import in __init__ files.
180
init-import=no
181

182
# A regular expression matching the beginning of the name of dummy variables
183
# (i.e. not used).
184
dummy-variables-rgx=_|dummy
185

186
# List of additional names supposed to be defined in builtins. Remember that
187
# you should avoid to define new builtins when possible.
188
additional-builtins=
189

190

191
[IMPORTS]
192

193
# Deprecated modules which should not be used, separated by a comma
194
deprecated-modules=regsub,string,TERMIOS,Bastion,rexec
195

196
# Create a graph of every (i.e. internal and external) dependencies in the
197
# given file (report RP0402 must not be disabled)
198
import-graph=
199

200
# Create a graph of external dependencies in the given file (report RP0402 must
201
# not be disabled)
202
ext-import-graph=
203

204
# Create a graph of internal dependencies in the given file (report RP0402 must
205
# not be disabled)
206
int-import-graph=
207

208

209
[DESIGN]
210

211
# Maximum number of arguments for function / method
212
max-args=12
213

214
# Argument names that match this expression will be ignored. Default to name
215
# with leading underscore
216
ignored-argument-names=_.*
217

218
# Maximum number of locals for function / method body
219
max-locals=15
220

221
# Maximum number of return / yield for function / method body
222
max-returns=6
223

224
# Maximum number of branch for function / method body
225
max-branchs=12
226

227
# Maximum number of statements in function / method body
228
max-statements=50
229

230
# Maximum number of parents for a class (see R0901).
231
max-parents=7
232

233
# Maximum number of attributes for a class (see R0902).
234
max-attributes=7
235

236
# Minimum number of public methods for a class (see R0903).
237
min-public-methods=2
238

239
# Maximum number of public methods for a class (see R0904).
240
max-public-methods=20
241

242

243
[CLASSES]
244

245
# List of interface methods to ignore, separated by a comma. This is used for
246
# instance to not check methods defines in Zope's Interface base class.
247
ignore-iface-methods=isImplementedBy,deferred,extends,names,namesAndDescriptions,queryDescriptionFor,getBases,getDescriptionFor,getDoc,getName,getTaggedValue,getTaggedValueTags,isEqualOrExtendedBy,setTaggedValue,isImplementedByInstancesOf,adaptWith,is_implemented_by
248

249
# List of method names used to declare (i.e. assign) instance attributes.
250
defining-attr-methods=__init__,__new__,setUp
251

252
# List of valid names for the first argument in a class method.
253
valid-classmethod-first-arg=cls
254

255
# List of valid names for the first argument in a metaclass class method.
256
valid-metaclass-classmethod-first-arg=mcs
257

258

259
[EXCEPTIONS]
260

261
# Exceptions that will emit a warning when being caught. Defaults to
262
# "Exception"
263
overgeneral-exceptions=Exception
264

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.