11# -*- coding: utf-8; mode: conf -*-
2- # lint Python modules using external checkers.
3- #
4- # This is the main checker controlling the other ones and the reports
5- # generation. It is itself both a raw checker and an astng checker in order
6- # to:
7- # * handle message activation / deactivation at the module level
8- # * handle some basic but necessary stats'data (number of classes, methods...)
9- #
2+
103[MASTER]
114
125# A comma-separated list of package or module names from where C extensions may
@@ -59,7 +52,13 @@ confidence=
5952# --enable=similarities". If you want to run only the classes checker, but have
6053# no Warning level messages displayed, use"--disable=all --enable=classes
6154# --disable=W"
62- disable =bad-whitespace, duplicate-code
55+ disable =duplicate-code,
56+ missing-function-docstring,
57+ consider-using-f-string,
58+ use-dict-literal,
59+ unnecessary-lambda-assignment,
60+ redundant-u-string-prefix,
61+ consider-iterating-dictionary
6362
6463# Enable the message, report, category or checker with the given id(s). You can
6564# either give multiple identifier separated by comma (,) or put this option
@@ -105,39 +104,21 @@ max-nested-blocks=5
105104
106105[BASIC]
107106
108- # List of builtins function names that should not be used, separated by a comma
109- bad-functions =map,filter,apply,input
110-
111- # Naming hint for argument names
112- argument-name-hint =(([a-z][a-z0-9_]{2,30})|(_[a-z0-9_]*))$
113-
114107# Regular expression matching correct argument names
115108argument-rgx =(([a-z][a-zA-Z0-9_]{2,30})|(_[a-z0-9_]*))$
116109
117- # Naming hint for attribute names
118- attr-name-hint =(([a-z][a-z0-9_]{2,30})|(_[a-z0-9_]*))$
119-
120110# Regular expression matching correct attribute names
121111attr-rgx =(([a-z][a-z0-9_]{2,30})|(_[a-z0-9_]*)|([A-Z0-9_]*))$
122112
123113# Bad variable names which should always be refused, separated by a comma
124114bad-names =foo,bar,baz,toto,tutu,tata
125115
126- # Naming hint for class attribute names
127- class-attribute-name-hint =([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
128-
129116# Regular expression matching correct class attribute names
130117class-attribute-rgx =([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
131118
132- # Naming hint for class names
133- class-name-hint =[A-Z_][a-zA-Z0-9]+$
134-
135119# Regular expression matching correct class names
136120class-rgx =[A-Z_][a-zA-Z0-9]+$
137121
138- # Naming hint for constant names
139- const-name-hint =(([A-Z_][A-Z0-9_]*)|(__.*__))$
140-
141122# Regular expression matching correct constant names
142123const-rgx =(([a-zA-Z_][a-zA-Z0-9_]*)|(__.*__))$
143124# const-rgx=[f]?[A-Z_][a-zA-Z0-9_]{2,30}$
@@ -146,9 +127,6 @@ const-rgx=(([a-zA-Z_][a-zA-Z0-9_]*)|(__.*__))$
146127# ones are exempt.
147128docstring-min-length =-1
148129
149- # Naming hint for function names
150- function-name-hint =(([a-z][a-z0-9_]{2,30})|(_[a-z0-9_]*))$
151-
152130# Regular expression matching correct function names
153131function-rgx =(([a-z][a-zA-Z0-9_]{2,30})|(_[a-z0-9_]*))$
154132
@@ -158,21 +136,12 @@ good-names=i,j,k,ex,Run,_,log,cfg,id
158136# Include a hint for the correct naming format with invalid-name
159137include-naming-hint =no
160138
161- # Naming hint for inline iteration names
162- inlinevar-name-hint =[A-Za-z_][A-Za-z0-9_]*$
163-
164139# Regular expression matching correct inline iteration names
165140inlinevar-rgx =[A-Za-z_][A-Za-z0-9_]*$
166141
167- # Naming hint for method names
168- method-name-hint =(([a-z][a-z0-9_]{2,30})|(_[a-z0-9_]*))$
169-
170142# Regular expression matching correct method names
171143method-rgx =(([a-z][a-zA-Z0-9_]{2,30})|(_[a-z0-9_]*))$
172144
173- # Naming hint for module names
174- module-name-hint =(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
175-
176145# Regular expression matching correct module names
177146# module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
178147module-rgx =([a-z_][a-z0-9_]*)$
@@ -189,9 +158,6 @@ no-docstring-rgx=^_
189158# to this list to register other decorators that produce valid properties.
190159property-classes =abc.abstractproperty
191160
192- # Naming hint for variable names
193- variable-name-hint =(([a-z][a-z0-9_]{2,30})|(_[a-z0-9_]*))$
194-
195161# Regular expression matching correct variable names
196162variable-rgx =(([a-z][a-zA-Z0-9_]{2,30})|(_[a-z0-9_]*)|([a-z]))$
197163
@@ -217,12 +183,6 @@ max-line-length=120
217183# Maximum number of lines in a module
218184max-module-lines =2000
219185
220- # List of optional constructs for which whitespace checking is disabled. `dict-
221- # separator` is used to allow tabulation in dicts, etc.: {1 : 1,\n222: 2}.
222- # `trailing-comma` allows a space between comma and closing bracket: (a, ).
223- # `empty-line` allows space-only lines.
224- no-space-check =trailing-comma,dict-separator
225-
226186# Allow the body of a class to be on the same line as the declaration if body
227187# contains single statement.No config file found, using default configuration
228188
@@ -243,7 +203,7 @@ logging-modules=logging
243203[MISCELLANEOUS]
244204
245205# List of note tags to take in consideration, separated by a comma.
246- notes =FIXME,XXX,TODO
206+ notes =FIXME,XXX
247207
248208
249209[SIMILARITIES]
@@ -441,4 +401,4 @@ known-third-party=enchant
441401
442402# Exceptions that will emit a warning when being caught. Defaults to
443403# "Exception"
444- overgeneral-exceptions =Exception
404+ overgeneral-exceptions =builtins. Exception
0 commit comments