X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=pylint.cfg;h=82b3a0621584e50ce203a6ec172fb8ff5e26c73c;hp=6052e32da32d734a274b76bd5e1a9a4b9782676a;hb=aa5f30a291cc6781cf7071118d1179d201df75b2;hpb=f112262b6d3db251fe3171333adc48ee14ebed22 diff --git a/pylint.cfg b/pylint.cfg index 6052e32da3..82b3a06215 100644 --- a/pylint.cfg +++ b/pylint.cfg @@ -12,7 +12,7 @@ profile=no # Add files or directories to the blacklist. They should be base names, not # paths. -ignore=CVS +ignore=CVS, conf.py # Pickle collected data for later comparisons. persistent=yes @@ -21,6 +21,10 @@ persistent=yes # usually to register additional checkers. load-plugins= +# A comma-separated list of package or module names from where C extensions may +# be loaded. Extensions are loading into the active Python interpreter and may +# run arbitrary code +extension-pkg-whitelist=numpy, scipy [MESSAGES CONTROL] @@ -38,8 +42,9 @@ load-plugins= # --enable=similarities". If you want to run only the classes checker, but have # no Warning level messages displayed, use"--disable=all --enable=classes # --disable=W" -disable=redefined-variable-type +#disable=redefined-variable-type, locally-disabled, locally-enabled +# TODO: Add explanation when disabling an id, either locally or globally. [REPORTS] @@ -88,7 +93,7 @@ single-line-if-stmt=no no-space-check=trailing-comma,dict-separator # Maximum number of lines in a module -max-module-lines=1000 +max-module-lines=2000 # String used as indentation unit. This is usually " " (4 spaces) or "\t" (1 # tab). @@ -112,13 +117,13 @@ additional-builtins= [SIMILARITIES] # Minimum lines number of a similarity. -min-similarity-lines=4 +min-similarity-lines=14 # Ignore comments when computing similarities. ignore-comments=yes # Ignore docstrings when computing similarities. -ignore-docstrings=yes +ignore-docstrings=no # Ignore imports when computing similarities. ignore-imports=no @@ -145,7 +150,7 @@ class-rgx=[A-Z_][a-zA-Z0-9]+$ function-rgx=[a-z_][a-z0-9_]{2,30}$ # Regular expression which should only match correct method names -method-rgx=[a-z_][a-z0-9_]{2,40}$ +method-rgx=[a-z_][a-z0-9_]{2,50}$ # Regular expression which should only match correct instance attribute names attr-rgx=[a-z_][a-z0-9_]{2,30}$ @@ -242,7 +247,7 @@ int-import-graph= [DESIGN] # Maximum number of arguments for function / method -max-args=10 +max-args=12 # Argument names that match this expression will be ignored. Default to name # with leading underscore @@ -270,7 +275,7 @@ max-attributes=10 min-public-methods=0 # Maximum number of public methods for a class (see R0904). -max-public-methods=50 +max-public-methods=60 [EXCEPTIONS] @@ -278,3 +283,10 @@ max-public-methods=50 # Exceptions that will emit a warning when being caught. Defaults to # "Exception" overgeneral-exceptions=Exception + + +[LOGGING] + +# Format style used to check logging format string. `old` means using % +# formatting, while `new` is for `{}` formatting. +logging-format-style=fstr \ No newline at end of file