X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=pylint.cfg;h=82b3a0621584e50ce203a6ec172fb8ff5e26c73c;hp=6a6e2865c6b2d8020a88bbbb1ff886c4d71f21ad;hb=fe9072ce82a91c5d6de30d07756d5a12b80f9c74;hpb=cf561a6e3d4c4fbd78ab6c9d0a9aa817bb3300fc diff --git a/pylint.cfg b/pylint.cfg index 6a6e2865c6..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] @@ -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 @@ -278,3 +283,10 @@ max-public-methods=60 # 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