Skip to content

Commit 672f7d8

Browse files
committed
lint
Signed-off-by: xadupre <[email protected]>
1 parent cbede92 commit 672f7d8

File tree

1 file changed

+1
-66
lines changed

1 file changed

+1
-66
lines changed

tools/pylintrc

+1-66
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88
# pygtk.require().
99
#init-hook=
1010

11-
# Profiled execution.
12-
profile=no
13-
1411
# Add files or directories to the blacklist. They should be base names, not
1512
# paths.
1613
ignore=CVS
@@ -39,11 +36,7 @@ enable=indexing-exception,old-raise-syntax
3936
# --enable=similarities". If you want to run only the classes checker, but have
4037
# no Warning level messages displayed, use"--disable=all --enable=classes
4138
# --disable=W"
42-
disable=design,similarities,no-self-use,attribute-defined-outside-init,locally-disabled,star-args,pointless-except,bad-option-value,global-statement,fixme,suppressed-message,useless-suppression,locally-enabled,no-member,no-name-in-module,import-error,unsubscriptable-object,unbalanced-tuple-unpacking,undefined-variable,not-context-manager,useless-object-inheritance,consider-using-f-string,unspecified-encoding,unnecessary-lambda-assignment,use-dict-literal,consider-using-with,wrong-import-order,consider-iterating-dictionary,use-maxsplit-arg,possibly-used-before-assignment,super-with-arguments,redundant-u-string-prefix,use-list-literal,f-string-without-interpolation,condition-evals-to-constant,global-variable-not-assigned,consider-using-enumerate,unused-argument,superfluous-parens,use-sequence-for-iteration,useless-return,superfluous-parens,use-a-generator,raise-missing-from,overgeneral-exceptions,condition-evals-to-constant
43-
44-
45-
# Set the cache size for astng objects.
46-
cache-size=500
39+
disable=design,similarities,no-self-use,attribute-defined-outside-init,locally-disabled,star-args,pointless-except,bad-option-value,global-statement,fixme,suppressed-message,useless-suppression,locally-enabled,no-member,no-name-in-module,import-error,unsubscriptable-object,unbalanced-tuple-unpacking,undefined-variable,not-context-manager,useless-object-inheritance,consider-using-f-string,unspecified-encoding,unnecessary-lambda-assignment,use-dict-literal,consider-using-with,wrong-import-order,consider-iterating-dictionary,use-maxsplit-arg,possibly-used-before-assignment,super-with-arguments,redundant-u-string-prefix,use-list-literal,f-string-without-interpolation,condition-evals-to-constant,global-variable-not-assigned,consider-using-enumerate,unused-argument,superfluous-parens,use-sequence-for-iteration,useless-return,superfluous-parens,use-a-generator,raise-missing-from,overgeneral-exceptions,condition-evals-to-constant,consider-using-generator,use-yield-from,consider-using-min-builtin,overgeneral-exceptions
4740

4841

4942
[REPORTS]
@@ -53,11 +46,6 @@ cache-size=500
5346
# mypackage.mymodule.MyReporterClass.
5447
output-format=text
5548

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-
6149
# Tells whether to display a full report or only the messages
6250
reports=no
6351

@@ -68,10 +56,6 @@ reports=no
6856
# (RP0004).
6957
evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
7058

71-
# Add a comment according to your evaluation note. This is used by the global
72-
# evaluation report (RP0004).
73-
comment=no
74-
7559
# Template used to display messages. This is a python new-style format string
7660
# used to format the message information. See doc for all details
7761
#msg-template=
@@ -87,10 +71,6 @@ ignore-mixin-members=yes
8771
# (useful for classes with attributes dynamically set).
8872
ignored-classes=SQLObject
8973

90-
# When zope mode is activated, add a predefined set of Zope acquired attributes
91-
# to generated-members.
92-
zope=no
93-
9474
# List of members which are set dynamically and missed by pylint inference
9575
# system, and so shouldn't trigger E0201 when accessed. Python regular
9676
# expressions are accepted.
@@ -117,17 +97,6 @@ additional-builtins=
11797

11898
[BASIC]
11999

120-
# Required attributes for module, separated by a comma
121-
required-attributes=
122-
123-
# List of builtins function names that should not be used, separated by a comma
124-
bad-functions=apply,input,reduce
125-
126-
127-
# Disable the report(s) with the given id(s).
128-
# All non-Google reports are disabled by default.
129-
disable-report=R0001,R0002,R0003,R0004,R0101,R0102,R0201,R0202,R0220,R0401,R0402,R0701,R0801,R0901,R0902,R0903,R0904,R0911,R0912,R0913,R0914,R0915,R0921,R0922,R0923
130-
131100
# Regular expression which should only match correct module names
132101
module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
133102

@@ -187,9 +156,6 @@ ignore-long-lines=^\s*(# )?<?https?://\S+>?$
187156
# else.
188157
single-line-if-stmt=y
189158

190-
# List of optional constructs for which whitespace checking is disabled
191-
no-space-check=
192-
193159
# Maximum number of lines in a module
194160
max-module-lines=99999
195161

@@ -239,10 +205,6 @@ int-import-graph=
239205

240206
[CLASSES]
241207

242-
# List of interface methods to ignore, separated by a comma. This is used for
243-
# instance to not check methods defines in Zope's Interface base class.
244-
ignore-iface-methods=isImplementedBy,deferred,extends,names,namesAndDescriptions,queryDescriptionFor,getBases,getDescriptionFor,getDoc,getName,getTaggedValue,getTaggedValueTags,isEqualOrExtendedBy,setTaggedValue,isImplementedByInstancesOf,adaptWith,is_implemented_by
245-
246208
# List of method names used to declare (i.e. assign) instance attributes.
247209
defining-attr-methods=__init__,__new__,setUp
248210

@@ -286,33 +248,6 @@ min-public-methods=2
286248
# Maximum number of public methods for a class (see R0904).
287249
max-public-methods=20
288250

289-
290-
[EXCEPTIONS]
291-
292-
# Exceptions that will emit a warning when being caught. Defaults to
293-
# "Exception"
294-
overgeneral-exceptions=Exception,StandardError,BaseException
295-
296-
297-
[AST]
298-
299-
# Maximum line length for lambdas
300-
short-func-length=1
301-
302-
# List of module members that should be marked as deprecated.
303-
# All of the string functions are listed in 4.1.4 Deprecated string functions
304-
# in the Python 2.4 docs.
305-
deprecated-members=string.atof,string.atoi,string.atol,string.capitalize,string.expandtabs,string.find,string.rfind,string.index,string.rindex,string.count,string.lower,string.split,string.rsplit,string.splitfields,string.join,string.joinfields,string.lstrip,string.rstrip,string.strip,string.swapcase,string.translate,string.upper,string.ljust,string.rjust,string.center,string.zfill,string.replace,sys.exitfunc
306-
307-
308-
[DOCSTRING]
309-
310-
# List of exceptions that do not need to be mentioned in the Raises section of
311-
# a docstring.
312-
ignore-exceptions=AssertionError,NotImplementedError,StopIteration,TypeError
313-
314-
315-
316251
[TOKENS]
317252

318253
# Number of spaces of indent required when the last token on the preceding line

0 commit comments

Comments
 (0)