@@ -30,14 +30,6 @@ unsafe-load-any-extension=no
3030# run arbitrary code
3131extension-pkg-whitelist =setools.policyrep
3232
33- # Allow optimization of some AST trees. This will activate a peephole AST
34- # optimizer, which will apply various small optimizations. For instance, it can
35- # be used to obtain the result of joining multiple strings with the addition
36- # operator. Joining a lot of strings can lead to a maximum recursion error in
37- # Pylint and this flag can prevent that. It has one side effect, the resulting
38- # AST will be different than the one from reality.
39- optimize-ast =no
40-
4133
4234[MESSAGES CONTROL]
4335
@@ -69,11 +61,6 @@ disable=I,logging-format-interpolation,format,similarities
6961# mypackage.mymodule.MyReporterClass.
7062output-format =text
7163
72- # Put messages in a separate file for each module / package specified on the
73- # command line instead of printing them on stdout. Reports (if any) will be
74- # written in a file name "pylint_global.[txt|html]".
75- files-output =no
76-
7764# Tells whether to display a full report or only the messages
7865reports =no
7966
@@ -110,21 +97,12 @@ include-naming-hint=no
11097# Regular expression matching correct constant names
11198const-rgx =(([A-Z_][A-Z0-9_]*)|(__.*__))$
11299
113- # Naming hint for constant names
114- const-name-hint =(([A-Z_][A-Z0-9_]*)|(__.*__))$
115-
116100# Regular expression matching correct method names
117101method-rgx =[a-z_][a-z0-9_]{2,30}$
118102
119- # Naming hint for method names
120- method-name-hint =[a-z_][a-z0-9_]{2,30}$
121-
122103# Regular expression matching correct function names
123104function-rgx =[a-z_][a-z0-9_]{2,30}$
124105
125- # Naming hint for function names
126- function-name-hint =[a-z_][a-z0-9_]{2,30}$
127-
128106# Regular expression matching correct class attribute names
129107class-attribute-rgx =([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
130108
@@ -134,39 +112,21 @@ class-attribute-name-hint=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
134112# Regular expression matching correct attribute names
135113attr-rgx =[a-z_][a-z0-9_]{2,30}$
136114
137- # Naming hint for attribute names
138- attr-name-hint =[a-z_][a-z0-9_]{2,30}$
139-
140115# Regular expression matching correct class names
141116class-rgx =[A-Z_][a-zA-Z0-9]+$
142117
143- # Naming hint for class names
144- class-name-hint =[A-Z_][a-zA-Z0-9]+$
145-
146118# Regular expression matching correct module names
147119module-rgx =(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
148120
149- # Naming hint for module names
150- module-name-hint =(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
151-
152121# Regular expression matching correct inline iteration names
153122inlinevar-rgx =[A-Za-z_][A-Za-z0-9_]*$
154123
155- # Naming hint for inline iteration names
156- inlinevar-name-hint =[A-Za-z_][A-Za-z0-9_]*$
157-
158124# Regular expression matching correct argument names
159125argument-rgx =[a-z_][a-z0-9_]{2,30}$
160126
161- # Naming hint for argument names
162- argument-name-hint =[a-z_][a-z0-9_]{2,30}$
163-
164127# Regular expression matching correct variable names
165128variable-rgx =[a-z_][a-z0-9_]{2,30}$
166129
167- # Naming hint for variable names
168- variable-name-hint =[a-z_][a-z0-9_]{2,30}$
169-
170130# Regular expression which should only match function or class names that do
171131# not require a docstring.
172132no-docstring-rgx =^_
@@ -224,12 +184,6 @@ ignore-long-lines=^\s*(# )?<?https?://\S+>?$
224184# else.
225185single-line-if-stmt =no
226186
227- # List of optional constructs for which whitespace checking is disabled. `dict-
228- # separator` is used to allow tabulation in dicts, etc.: {1 : 1,\n222: 2}.
229- # `trailing-comma` allows a space between comma and closing bracket: (a, ).
230- # `empty-line` allows space-only lines.
231- no-space-check =trailing-comma,dict-separator
232-
233187# Maximum number of lines in a module
234188max-module-lines =1000
235189
@@ -375,4 +329,4 @@ exclude-protected=_asdict,_fields,_replace,_source,_make
375329
376330# Exceptions that will emit a warning when being caught. Defaults to
377331# "Exception"
378- overgeneral-exceptions =Exception
332+ overgeneral-exceptions =builtins. Exception
0 commit comments