| 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 |
# Add files or directories to the blacklist. They should be base names, not |
| 11 |
# paths. |
| 12 |
ignore=.tox,CVS |
| 13 |
|
| 14 |
# Add files or directories matching the regular expressions patterns to the |
| 15 |
# ignore-list. The regex matches against paths and can be in Posix or Windows |
| 16 |
# format. Because '\\' represents the directory delimiter on Windows systems, |
| 17 |
# it can't be used as an escape character. |
| 18 |
ignore-paths=doc/conf.py,tests/testdata/ |
| 19 |
|
| 20 |
# Pickle collected data for later comparisons. |
| 21 |
persistent=yes |
| 22 |
|
| 23 |
# List of plugins (as comma separated values of python modules names) to load, |
| 24 |
# usually to register additional checkers. |
| 25 |
load-plugins= |
| 26 |
pylint.extensions.check_elif, |
| 27 |
pylint.extensions.bad_builtin, |
| 28 |
pylint.extensions.code_style, |
| 29 |
pylint.extensions.overlapping_exceptions, |
| 30 |
pylint.extensions.typing, |
| 31 |
pylint.extensions.set_membership, |
| 32 |
pylint.extensions.redefined_variable_type, |
| 33 |
pylint.extensions.for_any_all, |
| 34 |
|
| 35 |
# Use multiple processes to speed up Pylint. |
| 36 |
jobs=1 |
| 37 |
|
| 38 |
# Allow loading of arbitrary C extensions. Extensions are imported into the |
| 39 |
# active Python interpreter and may run arbitrary code. |
| 40 |
unsafe-load-any-extension=no |
| 41 |
|
| 42 |
# A comma-separated list of package or module names from where C extensions may |
| 43 |
# be loaded. Extensions are loading into the active Python interpreter and may |
| 44 |
# run arbitrary code |
| 45 |
extension-pkg-whitelist=mypy |
| 46 |
|
| 47 |
# Minimum supported python version |
| 48 |
py-version = 3.10.0 |
| 49 |
|
| 50 |
|
| 51 |
[REPORTS] |
| 52 |
|
| 53 |
# Set the output format. Available formats are text, parseable, colorized, msvs |
| 54 |
# (visual studio) and html. You can also give a reporter class, eg |
| 55 |
# mypackage.mymodule.MyReporterClass. |
| 56 |
output-format=text |
| 57 |
|
| 58 |
# Tells whether to display a full report or only the messages |
| 59 |
reports=no |
| 60 |
|
| 61 |
# Python expression which should return a note less than 10 (10 is the highest |
| 62 |
# note). You have access to the variables errors warning, statement which |
| 63 |
# respectively contain the number of errors / warnings messages and the total |
| 64 |
# number of statements analyzed. This is used by the global evaluation report |
| 65 |
# (RP0004). |
| 66 |
evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10) |
| 67 |
|
| 68 |
# Template used to display messages. This is a python new-style format string |
| 69 |
# used to format the message information. See doc for all details |
| 70 |
#msg-template= |
| 71 |
|
| 72 |
|
| 73 |
[MESSAGES CONTROL] |
| 74 |
|
| 75 |
# Only show warnings with the listed confidence levels. Leave empty to show |
| 76 |
# all. Valid levels: HIGH, INFERENCE, INFERENCE_FAILURE, UNDEFINED |
| 77 |
confidence= |
| 78 |
|
| 79 |
|
| 80 |
# Disable the message, report, category or checker with the given id(s). You |
| 81 |
# can either give multiple identifiers separated by comma (,) or put this |
| 82 |
# option multiple times (only on the command line, not in the configuration |
| 83 |
# file where it should appear only once).You can also use "--disable=all" to |
| 84 |
# disable everything first and then re-enable specific checks. For example, if |
| 85 |
# you want to run only the similarities checker, you can use "--disable=all |
| 86 |
# --enable=similarities". If you want to run only the classes checker, but have |
| 87 |
# no Warning level messages displayed, use"--disable=all --enable=classes |
| 88 |
# --disable=W" |
| 89 |
|
| 90 |
disable=fixme, |
| 91 |
invalid-name, |
| 92 |
missing-docstring, |
| 93 |
too-few-public-methods, |
| 94 |
too-many-public-methods, |
| 95 |
# We know about it and we're doing our best to remove it in 2.0 (oups) |
| 96 |
cyclic-import, |
| 97 |
# Requires major redesign for fixing this (and private |
| 98 |
# access in the same project is fine) |
| 99 |
protected-access, |
| 100 |
# API requirements in most of the occurrences |
| 101 |
unused-argument, |
| 102 |
# black handles these |
| 103 |
format, |
| 104 |
# We might want to disable new checkers from master that do not exists |
| 105 |
# in latest published pylint |
| 106 |
bad-option-value, |
| 107 |
# Legacy warning not checked in astroid/brain before we |
| 108 |
# transitioned to setuptools and added an init.py |
| 109 |
duplicate-code, |
| 110 |
# This one would help performance but we need to fix the pipeline first |
| 111 |
# and there are a lot of warning for it |
| 112 |
consider-using-f-string, |
| 113 |
consider-using-assignment-expr, |
| 114 |
|
| 115 |
enable=useless-suppression |
| 116 |
|
| 117 |
[BASIC] |
| 118 |
|
| 119 |
# List of builtins function names that should not be used, separated by a comma |
| 120 |
bad-functions= |
| 121 |
|
| 122 |
# Good variable names which should always be accepted, separated by a comma |
| 123 |
good-names=i,j,k,e,ex,f,m,cm,Run,_,n,op,it |
| 124 |
|
| 125 |
# Bad variable names which should always be refused, separated by a comma |
| 126 |
bad-names=foo,bar,baz,toto,tutu,tata |
| 127 |
|
| 128 |
# Colon-delimited sets of names that determine each other's naming style when |
| 129 |
# the name regexes allow several styles. |
| 130 |
name-group= |
| 131 |
|
| 132 |
# Include a hint for the correct naming format with invalid-name |
| 133 |
include-naming-hint=no |
| 134 |
|
| 135 |
# Regular expression matching correct attribute names |
| 136 |
attr-rgx=[a-z_][a-z0-9_]{2,30}$ |
| 137 |
|
| 138 |
# Regular expression matching correct constant names |
| 139 |
const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$ |
| 140 |
|
| 141 |
# Regular expression matching correct method names |
| 142 |
method-rgx=[a-z_][a-z0-9_]{2,30}$ |
| 143 |
|
| 144 |
# Regular expression matching correct inline iteration names |
| 145 |
inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$ |
| 146 |
|
| 147 |
# Regular expression matching correct class names |
| 148 |
class-rgx=[A-Z_][a-zA-Z0-9]+$ |
| 149 |
|
| 150 |
# Regular expression matching correct argument names |
| 151 |
argument-rgx=[a-z_][a-z0-9_]{2,30}$ |
| 152 |
|
| 153 |
# Regular expression matching correct module names |
| 154 |
module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$ |
| 155 |
|
| 156 |
# Regular expression matching correct function names |
| 157 |
function-rgx=[a-z_][a-z0-9_]{2,30}$ |
| 158 |
|
| 159 |
# Regular expression matching correct variable names |
| 160 |
variable-rgx=[a-z_][a-z0-9_]{2,30}$ |
| 161 |
|
| 162 |
# Regular expression matching correct class attribute names |
| 163 |
class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$ |
| 164 |
|
| 165 |
# Regular expression which should only match function or class names that do |
| 166 |
|
| 167 |
# not require a docstring. |
| 168 |
no-docstring-rgx=__.*__ |
| 169 |
|
| 170 |
# Minimum line length for functions/classes that require docstrings, shorter |
| 171 |
# ones are exempt. |
| 172 |
docstring-min-length=-1 |
| 173 |
|
| 174 |
|
| 175 |
[FORMAT] |
| 176 |
|
| 177 |
# Maximum number of characters on a single line. |
| 178 |
max-line-length=100 |
| 179 |
|
| 180 |
# Regexp for a line that is allowed to be longer than the limit. |
| 181 |
ignore-long-lines=^\s*(# )?<?https?://\S+>?$ |
| 182 |
|
| 183 |
# Allow the body of an if to be on the same line as the test if there is no |
| 184 |
# else. |
| 185 |
single-line-if-stmt=no |
| 186 |
|
| 187 |
# Maximum number of lines in a module |
| 188 |
max-module-lines=3000 |
| 189 |
|
| 190 |
# String used as indentation unit. This is usually " " (4 spaces) or "\t" (1 |
| 191 |
# tab). |
| 192 |
indent-string=' ' |
| 193 |
|
| 194 |
# Number of spaces of indent required inside a hanging or continued line. |
| 195 |
indent-after-paren=4 |
| 196 |
|
| 197 |
# Expected format of line ending, e.g. empty (any line ending), LF or CRLF. |
| 198 |
expected-line-ending-format= |
| 199 |
|
| 200 |
|
| 201 |
[LOGGING] |
| 202 |
|
| 203 |
# Logging modules to check that the string format arguments are in logging |
| 204 |
# function parameter format |
| 205 |
logging-modules=logging |
| 206 |
|
| 207 |
|
| 208 |
[MISCELLANEOUS] |
| 209 |
|
| 210 |
# List of note tags to take in consideration, separated by a comma. |
| 211 |
notes=FIXME,XXX,TODO |
| 212 |
|
| 213 |
|
| 214 |
[SIMILARITIES] |
| 215 |
|
| 216 |
# Minimum lines number of a similarity. |
| 217 |
min-similarity-lines=4 |
| 218 |
|
| 219 |
# Ignore comments when computing similarities. |
| 220 |
ignore-comments=yes |
| 221 |
|
| 222 |
# Ignore docstrings when computing similarities. |
| 223 |
ignore-docstrings=yes |
| 224 |
|
| 225 |
# Ignore imports when computing similarities. |
| 226 |
ignore-imports=yes |
| 227 |
|
| 228 |
|
| 229 |
[SPELLING] |
| 230 |
|
| 231 |
# Spelling dictionary name. Available dictionaries: none. To make it working |
| 232 |
# install python-enchant package. |
| 233 |
spelling-dict= |
| 234 |
|
| 235 |
# List of comma separated words that should not be checked. |
| 236 |
spelling-ignore-words= |
| 237 |
|
| 238 |
# A path to a file that contains private dictionary; one word per line. |
| 239 |
spelling-private-dict-file= |
| 240 |
|
| 241 |
# Tells whether to store unknown words to indicated private dictionary in |
| 242 |
# --spelling-private-dict-file option instead of raising a message. |
| 243 |
spelling-store-unknown-words=no |
| 244 |
|
| 245 |
|
| 246 |
[TYPECHECK] |
| 247 |
|
| 248 |
ignore-on-opaque-inference=n |
| 249 |
|
| 250 |
# List of module names for which member attributes should not be checked |
| 251 |
# (useful for modules/projects where namespaces are manipulated during runtime |
| 252 |
# and thus existing member attributes cannot be deduced by static analysis |
| 253 |
ignored-modules=typed_ast.ast3 |
| 254 |
|
| 255 |
# List of classes names for which member attributes should not be checked |
| 256 |
# (useful for classes with attributes dynamically set). |
| 257 |
ignored-classes=SQLObject |
| 258 |
|
| 259 |
# Regex pattern to define which classes are considered mixins. |
| 260 |
mixin-class-rgx=.*Mix[Ii]n |
| 261 |
|
| 262 |
# List of members which are set dynamically and missed by pylint inference |
| 263 |
# system, and so shouldn't trigger E0201 when accessed. Python regular |
| 264 |
# expressions are accepted. |
| 265 |
generated-members=REQUEST,acl_users,aq_parent,argparse.Namespace |
| 266 |
|
| 267 |
|
| 268 |
[VARIABLES] |
| 269 |
|
| 270 |
# Tells whether we should check for unused import in __init__ files. |
| 271 |
init-import=no |
| 272 |
|
| 273 |
# A regular expression matching the name of dummy variables (i.e. expectedly |
| 274 |
# not used). |
| 275 |
dummy-variables-rgx=_$|dummy |
| 276 |
|
| 277 |
# List of additional names supposed to be defined in builtins. Remember that |
| 278 |
# you should avoid to define new builtins when possible. |
| 279 |
additional-builtins= |
| 280 |
|
| 281 |
# List of strings which can identify a callback function by name. A callback |
| 282 |
# name must start or end with one of those strings. |
| 283 |
callbacks=cb_,_cb |
| 284 |
|
| 285 |
|
| 286 |
[CLASSES] |
| 287 |
|
| 288 |
# List of method names used to declare (i.e. assign) instance attributes. |
| 289 |
defining-attr-methods=__init__,__new__,setUp |
| 290 |
|
| 291 |
# List of valid names for the first argument in a class method. |
| 292 |
valid-classmethod-first-arg=cls |
| 293 |
|
| 294 |
# List of valid names for the first argument in a metaclass class method. |
| 295 |
valid-metaclass-classmethod-first-arg=mcs |
| 296 |
|
| 297 |
# List of member names, which should be excluded from the protected access |
| 298 |
# warning. |
| 299 |
exclude-protected=_asdict,_fields,_replace,_source,_make |
| 300 |
|
| 301 |
|
| 302 |
[DESIGN] |
| 303 |
|
| 304 |
# Maximum number of arguments for function / method |
| 305 |
max-args=10 |
| 306 |
|
| 307 |
# Maximum number of positional arguments for function / method. |
| 308 |
max-positional-arguments=8 |
| 309 |
|
| 310 |
# Argument names that match this expression will be ignored. Default to name |
| 311 |
|
| 312 |
# with leading underscore |
| 313 |
ignored-argument-names=_.* |
| 314 |
|
| 315 |
# Maximum number of locals for function / method body |
| 316 |
max-locals=25 |
| 317 |
|
| 318 |
# Maximum number of return / yield for function / method body |
| 319 |
max-returns=10 |
| 320 |
|
| 321 |
# Maximum number of branch for function / method body |
| 322 |
max-branches=25 |
| 323 |
|
| 324 |
# Maximum number of statements in function / method body |
| 325 |
max-statements=60 |
| 326 |
|
| 327 |
# Maximum number of parents for a class (see R0901). |
| 328 |
max-parents=10 |
| 329 |
|
| 330 |
# Maximum number of attributes for a class (see R0902). |
| 331 |
max-attributes=15 |
| 332 |
|
| 333 |
# Minimum number of public methods for a class (see R0903). |
| 334 |
min-public-methods=2 |
| 335 |
|
| 336 |
# Maximum number of public methods for a class (see R0904). |
| 337 |
max-public-methods=20 |
| 338 |
|
| 339 |
|
| 340 |
[IMPORTS] |
| 341 |
|
| 342 |
# Deprecated modules which should not be used, separated by a comma |
| 343 |
deprecated-modules=stringprep,optparse |
| 344 |
|
| 345 |
# Create a graph of every (i.e. internal and external) dependencies in the |
| 346 |
# given file (report RP0402 must not be disabled) |
| 347 |
import-graph= |
| 348 |
|
| 349 |
# Create a graph of external dependencies in the given file (report RP0402 must |
| 350 |
# not be disabled) |
| 351 |
ext-import-graph= |
| 352 |
|
| 353 |
# Create a graph of internal dependencies in the given file (report RP0402 must |
| 354 |
# not be disabled) |
| 355 |
int-import-graph= |
| 356 |
|
| 357 |
# Force import order to recognize a module as part of the standard |
| 358 |
# compatibility libraries. |
| 359 |
known-standard-library=_io |
| 360 |
|
| 361 |
[EXCEPTIONS] |
| 362 |
|
| 363 |
# Exceptions that will emit a warning when being caught. Defaults to |
| 364 |
# "Exception" |
| 365 |
overgeneral-exceptions=builtins.Exception |
| 366 |
|
| 367 |
|
| 368 |
[TYPING] |
| 369 |
|
| 370 |
# Annotations are used exclusively for type checking |
| 371 |
runtime-typing = no |