github.com/NVIDIA/aistore@v1.3.23-0.20240517131212-7df6609be51d/scripts/config/.pylintrc (about)

     1  [MASTER]
     2  
     3  # A comma-separated list of package or module names from where C extensions may
     4  # be loaded. Extensions are loading into the active Python interpreter and may
     5  # run arbitrary code.
     6  extension-pkg-whitelist=
     7  
     8  # Add files or directories to the blacklist. They should be base names, not
     9  # paths.
    10  ignore=CVS,venv,3rdparty,build,dist,
    11  
    12  # Add files or directories matching the regex patterns to the blacklist. The
    13  # regex matches against base names, not paths.
    14  ignore-patterns=
    15  
    16  # Use multiple processes to speed up Pylint. Specifying 0 will auto-detect the
    17  # number of processors available to use.
    18  jobs=0
    19  
    20  # Control the amount of potential inferred values when inferring a single
    21  # object. This can help the performance when dealing with large functions or
    22  # complex, nested conditions.
    23  limit-inference-results=100
    24  
    25  # List of plugins (as comma separated values of python module names) to load,
    26  # usually to register additional checkers.
    27  load-plugins=
    28  
    29  
    30  # When enabled, pylint would attempt to guess common misconfiguration and emit
    31  # user-friendly hints instead of false-positive error messages.
    32  suggestion-mode=yes
    33  
    34  [MESSAGES CONTROL]
    35  
    36  # Only show warnings with the listed confidence levels. Leave empty to show
    37  # all. Valid levels: HIGH, INFERENCE, INFERENCE_FAILURE, UNDEFINED.
    38  confidence=
    39  
    40  # Disable the message, report, category or checker with the given id(s). You
    41  # can either give multiple identifiers separated by comma (,) or put this
    42  # option multiple times (only on the command line, not in the configuration
    43  # file where it should appear only once). You can also use "--disable=all" to
    44  # disable everything first and then reenable specific checks. For example, if
    45  # you want to run only the similarities checker, you can use "--disable=all
    46  # --enable=similarities". If you want to run only the classes checker, but have
    47  # no Warning level messages displayed, use "--disable=all --enable=classes
    48  # --disable=W".
    49  disable=C, # just for now, everything should be checked
    50          broad-except,
    51          no-name-in-module,
    52          global-statement,
    53          import-error,
    54          missing-docstring,
    55          logging-format-interpolation,
    56          fixme,
    57          raw-checker-failed,
    58          bad-inline-option,
    59          locally-disabled,
    60          file-ignored,
    61          suppressed-message,
    62          useless-suppression,
    63          deprecated-pragma,
    64          use-symbolic-message-instead
    65  
    66  # Enable the message, report, category or checker with the given id(s). You can
    67  # either give multiple identifier separated by comma (,) or put this option
    68  # multiple time (only on the command line, not in the configuration file where
    69  # it should appear only once). See also the "--disable" option for examples.
    70  enable=c-extension-no-member
    71  
    72  
    73  [REPORTS]
    74  
    75  # Python expression which should return a score less than or equal to 10. You
    76  # have access to the variables 'error', 'warning', 'refactor', and 'convention'
    77  # which contain the number of messages in each category, as well as 'statement'
    78  # which is the total number of statements analyzed. This score is used by the
    79  # global evaluation report (RP0004).
    80  evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
    81  
    82  
    83  # Set the output format. Available formats are text, parseable, colorized, json
    84  # and msvs (visual studio). You can also give a reporter class, e.g.
    85  # mypackage.mymodule.MyReporterClass.
    86  output-format=text
    87  
    88  # Tells whether to display a full report or only the messages.
    89  reports=no
    90  
    91  # Activate the evaluation score.
    92  score=no
    93  
    94  
    95  [REFACTORING]
    96  
    97  # Maximum number of nested blocks for function / method body
    98  max-nested-blocks=5
    99  
   100  # Complete name of functions that never returns. When checking for
   101  # inconsistent-return-statements if a never returning function is called then
   102  # it will be considered as an explicit return statement and no message will be
   103  # printed.
   104  never-returning-functions=sys.exit
   105  
   106  
   107  [SPELLING]
   108  
   109  # Limits count of emitted suggestions for spelling mistakes.
   110  max-spelling-suggestions=4
   111  
   112  # Spelling dictionary name. Available dictionaries: none. To make it work,
   113  # install the python-enchant package.
   114  spelling-dict=
   115  
   116  # List of comma separated words that should not be checked.
   117  spelling-ignore-words=
   118  
   119  # A path to a file that contains the private dictionary; one word per line.
   120  spelling-private-dict-file=
   121  
   122  # Tells whether to store unknown words to the private dictionary (see the
   123  # --spelling-private-dict-file option) instead of raising a message.
   124  spelling-store-unknown-words=no
   125  
   126  
   127  [BASIC]
   128  
   129  # Naming style matching correct argument names.
   130  argument-naming-style=snake_case
   131  
   132  # Naming style matching correct attribute names.
   133  attr-naming-style=snake_case
   134  
   135  # Bad variable names which should always be refused, separated by a comma.
   136  bad-names=foo,
   137            bar,
   138            baz,
   139            toto,
   140            tutu,
   141            tata
   142  
   143  # Naming style matching correct class attribute names.
   144  class-attribute-naming-style=any
   145  
   146  # Naming style matching correct class names.
   147  class-naming-style=PascalCase
   148  
   149  # Naming style matching correct constant names.
   150  const-naming-style=any
   151  
   152  # Naming style matching correct function names.
   153  function-naming-style=snake_case
   154  
   155  # Good variable names which should always be accepted, separated by a comma.
   156  good-names=i,
   157             j,
   158             k,
   159             f,
   160             ex,
   161             Run,
   162             _
   163  
   164  # Include a hint for the correct naming format with invalid-name.
   165  include-naming-hint=yes
   166  
   167  # Naming style matching correct inline iteration names.
   168  inlinevar-naming-style=any
   169  
   170  # Naming style matching correct method names.
   171  method-naming-style=snake_case
   172  
   173  # Naming style matching correct module names.
   174  module-naming-style=snake_case
   175  
   176  # List of decorators that produce properties, such as abc.abstractproperty. Add
   177  # to this list to register other decorators that produce valid properties.
   178  # These decorators are taken in consideration only for invalid-name.
   179  property-classes=abc.abstractproperty
   180  
   181  # Naming style matching correct variable names.
   182  variable-naming-style=snake_case
   183  
   184  # Regular expression matching correct variable names. Overrides variable-
   185  # naming-style.
   186  #variable-rgx=
   187  
   188  
   189  [VARIABLES]
   190  
   191  # List of additional names supposed to be defined in builtins. Remember that
   192  # you should avoid defining new builtins when possible.
   193  additional-builtins=
   194  
   195  # Tells whether unused global variables should be treated as a violation.
   196  allow-global-unused-variables=no
   197  
   198  # List of strings which can identify a callback function by name. A callback
   199  # name must start or end with one of those strings.
   200  callbacks=cb_,
   201            _cb
   202  
   203  # A regular expression matching the name of dummy variables (i.e. expected to
   204  # not be used).
   205  dummy-variables-rgx=_+$|(_[a-zA-Z0-9_]*[a-zA-Z0-9]+?$)|dummy|^ignored_|^unused_
   206  
   207  # Argument names that match this expression will be ignored. Default to name
   208  # with leading underscore.
   209  ignored-argument-names=_.*|^ignored_|^unused_
   210  
   211  # Tells whether we should check for unused import in __init__ files.
   212  init-import=no
   213  
   214  # List of qualified module names which can have objects that can redefine
   215  # builtins.
   216  redefining-builtins-modules=six.moves,past.builtins,future.builtins,builtins,io
   217  
   218  
   219  [TYPECHECK]
   220  
   221  # List of decorators that produce context managers, such as
   222  # contextlib.contextmanager. Add to this list to register other decorators that
   223  # produce valid context managers.
   224  contextmanager-decorators=contextlib.contextmanager
   225  
   226  # List of members which are set dynamically and missed by pylint inference
   227  # system, and so shouldn't trigger E1101 when accessed. Python regular
   228  # expressions are accepted.
   229  generated-members=
   230  
   231  # Tells whether missing members accessed in mixin class should be ignored. A
   232  # mixin class is detected if its name ends with "mixin" (case insensitive).
   233  ignore-mixin-members=yes
   234  
   235  # Tells whether to warn about missing members when the owner of the attribute
   236  # is inferred to be None.
   237  ignore-none=yes
   238  
   239  # This flag controls whether pylint should warn about no-member and similar
   240  # checks whenever an opaque object is returned when inferring. The inference
   241  # can return multiple potential results while evaluating a Python object, but
   242  # some branches might not be evaluated, which results in partial inference. In
   243  # that case, it might be useful to still emit no-member and other checks for
   244  # the rest of the inferred objects.
   245  ignore-on-opaque-inference=yes
   246  
   247  # List of class names for which member attributes should not be checked (useful
   248  # for classes with dynamically set attributes). This supports the use of
   249  # qualified names.
   250  ignored-classes=optparse.Values,thread._local,_thread._local
   251  
   252  # List of module names for which member attributes should not be checked
   253  # (useful for modules/projects where namespaces are manipulated during runtime
   254  # and thus existing member attributes cannot be deduced by static analysis). It
   255  # supports qualified module names, as well as Unix pattern matching.
   256  ignored-modules=
   257  
   258  # Show a hint with possible names when a member name was not found. The aspect
   259  # of finding the hint is based on edit distance.
   260  missing-member-hint=yes
   261  
   262  # The minimum edit distance a name should have in order to be considered a
   263  # similar match for a missing member name.
   264  missing-member-hint-distance=1
   265  
   266  # The total number of similar names that should be taken in consideration when
   267  # showing a hint for a missing member.
   268  missing-member-max-choices=1
   269  
   270  # List of decorators that change the signature of a decorated function.
   271  signature-mutators=
   272  
   273  
   274  [SIMILARITIES]
   275  
   276  # Ignore comments when computing similarities.
   277  ignore-comments=yes
   278  
   279  # Ignore docstrings when computing similarities.
   280  ignore-docstrings=yes
   281  
   282  # Ignore imports when computing similarities.
   283  ignore-imports=no
   284  
   285  # Minimum lines number of a similarity.
   286  min-similarity-lines=4
   287  
   288  
   289  [FORMAT]
   290  
   291  # Expected format of line ending, e.g. empty (any line ending), LF or CRLF.
   292  expected-line-ending-format=
   293  
   294  # Regexp for a line that is allowed to be longer than the limit.
   295  ignore-long-lines=^\s*(# )?<?https?://\S+>?$
   296  
   297  # Number of spaces of indent required inside a hanging or continued line.
   298  indent-after-paren=4
   299  
   300  # String used as indentation unit. This is usually "    " (4 spaces) or "\t" (1
   301  # tab).
   302  indent-string='    '
   303  
   304  # Maximum number of characters on a single line.
   305  max-line-length=150
   306  
   307  # Maximum number of lines in a module.
   308  max-module-lines=2000
   309  
   310  # Allow the body of a class to be on the same line as the declaration if body
   311  # contains single statement.
   312  single-line-class-stmt=no
   313  
   314  # Allow the body of an if to be on the same line as the test if there is no
   315  # else.
   316  single-line-if-stmt=no
   317  
   318  
   319  [MISCELLANEOUS]
   320  
   321  # List of note tags to take in consideration, separated by a comma.
   322  notes=FIXME,
   323        XXX,
   324        TODO
   325  
   326  
   327  [STRING]
   328  
   329  # This flag controls whether the implicit-str-concat-in-sequence should
   330  # generate a warning on implicit string concatenation in sequences defined over
   331  # several lines.
   332  check-str-concat-over-line-jumps=no
   333  
   334  
   335  [DESIGN]
   336  
   337  # Maximum number of arguments for function / method.
   338  max-args=10
   339  
   340  # Maximum number of attributes for a class (see R0902).
   341  max-attributes=15
   342  
   343  # Maximum number of boolean expressions in an if statement (see R0916).
   344  max-bool-expr=5
   345  
   346  # Maximum number of branch for function / method body.
   347  max-branches=15
   348  
   349  # Maximum number of locals for function / method body.
   350  max-locals=20
   351  
   352  # Maximum number of parents for a class (see R0901).
   353  max-parents=7
   354  
   355  # Maximum number of public methods for a class (see R0904).
   356  max-public-methods=20
   357  
   358  # Maximum number of return / yield for function / method body.
   359  max-returns=10
   360  
   361  # Maximum number of statements in function / method body.
   362  max-statements=100
   363  
   364  # Minimum number of public methods for a class (see R0903).
   365  min-public-methods=1
   366  
   367  
   368  [CLASSES]
   369  
   370  # List of method names used to declare (i.e. assign) instance attributes.
   371  defining-attr-methods=__init__,
   372                        __new__,
   373                        setUp,
   374                        __post_init__
   375  
   376  # List of member names, which should be excluded from the protected access
   377  # warning.
   378  exclude-protected=_asdict,
   379                    _fields,
   380                    _replace,
   381                    _source,
   382                    _make
   383  
   384  # List of valid names for the first argument in a class method.
   385  valid-classmethod-first-arg=cls
   386  
   387  # List of valid names for the first argument in a metaclass class method.
   388  valid-metaclass-classmethod-first-arg=cls
   389  
   390  
   391  [IMPORTS]
   392  
   393  # List of modules that can be imported at any level, not just the top level
   394  # one.
   395  allow-any-import-level=
   396  
   397  # Allow wildcard imports from modules that define __all__.
   398  allow-wildcard-with-all=no
   399  
   400  # Deprecated modules which should not be used, separated by a comma.
   401  deprecated-modules=optparse,tkinter.tix
   402  
   403  # Create a graph of external dependencies in the given file (report RP0402 must
   404  # not be disabled).
   405  ext-import-graph=
   406  
   407  # Create a graph of every (i.e. internal and external) dependencies in the
   408  # given file (report RP0402 must not be disabled).
   409  import-graph=
   410  
   411  # Create a graph of internal dependencies in the given file (report RP0402 must
   412  # not be disabled).
   413  int-import-graph=
   414  
   415  # Force import order to recognize a module as part of the standard
   416  # compatibility libraries.
   417  known-standard-library=
   418  
   419  # Force import order to recognize a module as part of a third party library.
   420  known-third-party=enchant
   421  
   422  # Couples of modules and preferred modules, separated by a comma.
   423  preferred-modules=
   424  
   425  
   426  [EXCEPTIONS]
   427  
   428  # Exceptions that will emit a warning when being caught. Defaults to
   429  # "BaseException, Exception".
   430  overgeneral-exceptions=BaseException,
   431                         Exception