github.com/NVIDIA/aistore@v1.3.23-0.20240517131212-7df6609be51d/python/.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-allow-list=pydantic
     7  
     8  # A comma-separated list of package or module names from where C extensions may
     9  # be loaded. Extensions are loading into the active Python interpreter and may
    10  # run arbitrary code. (This is an alternative name to extension-pkg-allow-list
    11  # for backward compatibility.)
    12  extension-pkg-whitelist=
    13  
    14  # Return non-zero exit code if any of these messages/categories are detected,
    15  # even if score is above --fail-under value. Syntax same as enable. Messages
    16  # specified are enabled, while categories only check already-enabled messages.
    17  fail-on=
    18  
    19  # Specify a score threshold to be exceeded before program exits with error.
    20  fail-under=10.0
    21  
    22  # Files or directories to be skipped. They should be base names, not paths.
    23  ignore=CVS
    24  
    25  # Add files or directories matching the regex patterns to the ignore-list. The
    26  # regex matches against paths and can be in Posix or Windows format.
    27  ignore-paths=aistore/pytorch
    28  
    29  # Files or directories matching the regex patterns are skipped. The regex
    30  # matches against base names, not paths. The default value ignores emacs file
    31  # locks
    32  ignore-patterns=^\.#
    33  
    34  # Python code to execute, usually for sys.path manipulation such as
    35  # pygtk.require().
    36  #init-hook=
    37  
    38  # Use multiple processes to speed up Pylint. Specifying 0 will auto-detect the
    39  # number of processors available to use.
    40  jobs=0
    41  
    42  # Control the amount of potential inferred values when inferring a single
    43  # object. This can help the performance when dealing with large functions or
    44  # complex, nested conditions.
    45  limit-inference-results=100
    46  
    47  # List of plugins (as comma separated values of python module names) to load,
    48  # usually to register additional checkers.
    49  load-plugins=
    50  
    51  # Pickle collected data for later comparisons.
    52  persistent=yes
    53  
    54  # Minimum Python version to use for version dependent checks. Will default to
    55  # the version used to run pylint.
    56  py-version=3.8
    57  
    58  # Discover python modules and packages in the file system subtree.
    59  recursive=no
    60  
    61  # When enabled, pylint would attempt to guess common misconfiguration and emit
    62  # user-friendly hints instead of false-positive error messages.
    63  suggestion-mode=yes
    64  
    65  # Allow loading of arbitrary C extensions. Extensions are imported into the
    66  # active Python interpreter and may run arbitrary code.
    67  unsafe-load-any-extension=no
    68  
    69  
    70  [MESSAGES CONTROL]
    71  
    72  # Only show warnings with the listed confidence levels. Leave empty to show
    73  # all. Valid levels: HIGH, CONTROL_FLOW, INFERENCE, INFERENCE_FAILURE,
    74  # UNDEFINED.
    75  confidence=
    76  
    77  # Disable the message, report, category or checker with the given id(s). You
    78  # can either give multiple identifiers separated by comma (,) or put this
    79  # option multiple times (only on the command line, not in the configuration
    80  # file where it should appear only once). You can also use "--disable=all" to
    81  # disable everything first and then re-enable specific checks. For example, if
    82  # you want to run only the similarities checker, you can use "--disable=all
    83  # --enable=similarities". If you want to run only the classes checker, but have
    84  # no Warning level messages displayed, use "--disable=all --enable=classes
    85  # --disable=W".
    86  disable=raw-checker-failed,
    87          bad-inline-option,
    88          locally-disabled,
    89          file-ignored,
    90          suppressed-message,
    91          useless-suppression,
    92          deprecated-pragma,
    93          use-symbolic-message-instead,
    94          broad-except,
    95          missing-module-docstring
    96  
    97  # Enable the message, report, category or checker with the given id(s). You can
    98  # either give multiple identifier separated by comma (,) or put this option
    99  # multiple time (only on the command line, not in the configuration file where
   100  # it should appear only once). See also the "--disable" option for examples.
   101  enable=c-extension-no-member
   102  
   103  
   104  [REPORTS]
   105  
   106  # Python expression which should return a score less than or equal to 10. You
   107  # have access to the variables 'fatal', 'error', 'warning', 'refactor',
   108  # 'convention', and 'info' which contain the number of messages in each
   109  # category, as well as 'statement' which is the total number of statements
   110  # analyzed. This score is used by the global evaluation report (RP0004).
   111  evaluation=max(0, 0 if fatal else 10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10))
   112  
   113  # Template used to display messages. This is a python new-style format string
   114  # used to format the message information. See doc for all details.
   115  #msg-template=
   116  
   117  # Set the output format. Available formats are text, parseable, colorized, json
   118  # and msvs (visual studio). You can also give a reporter class, e.g.
   119  # mypackage.mymodule.MyReporterClass.
   120  output-format=text
   121  
   122  # Tells whether to display a full report or only the messages.
   123  reports=no
   124  
   125  # Activate the evaluation score.
   126  score=yes
   127  
   128  
   129  [REFACTORING]
   130  
   131  # Maximum number of nested blocks for function / method body
   132  max-nested-blocks=5
   133  
   134  # Complete name of functions that never returns. When checking for
   135  # inconsistent-return-statements if a never returning function is called then
   136  # it will be considered as an explicit return statement and no message will be
   137  # printed.
   138  never-returning-functions=sys.exit,argparse.parse_error
   139  
   140  
   141  [LOGGING]
   142  
   143  # The type of string formatting that logging methods do. `old` means using %
   144  # formatting, `new` is for `{}` formatting.
   145  logging-format-style=old
   146  
   147  # Logging modules to check that the string format arguments are in logging
   148  # function parameter format.
   149  logging-modules=logging
   150  
   151  
   152  [FORMAT]
   153  
   154  # Expected format of line ending, e.g. empty (any line ending), LF or CRLF.
   155  expected-line-ending-format=
   156  
   157  # Regexp for a line that is allowed to be longer than the limit.
   158  ignore-long-lines=^\s*(# )?<?https?://\S+>?$
   159  
   160  # Number of spaces of indent required inside a hanging or continued line.
   161  indent-after-paren=4
   162  
   163  # String used as indentation unit. This is usually "    " (4 spaces) or "\t" (1
   164  # tab).
   165  indent-string='    '
   166  
   167  # Maximum number of characters on a single line.
   168  max-line-length=120
   169  
   170  # Maximum number of lines in a module.
   171  max-module-lines=1000
   172  
   173  # Allow the body of a class to be on the same line as the declaration if body
   174  # contains single statement.
   175  single-line-class-stmt=no
   176  
   177  # Allow the body of an if to be on the same line as the test if there is no
   178  # else.
   179  single-line-if-stmt=no
   180  
   181  
   182  [SPELLING]
   183  
   184  # Limits count of emitted suggestions for spelling mistakes.
   185  max-spelling-suggestions=4
   186  
   187  # Spelling dictionary name. Available dictionaries: none. To make it work,
   188  # install the 'python-enchant' package.
   189  spelling-dict=
   190  
   191  # List of comma separated words that should be considered directives if they
   192  # appear and the beginning of a comment and should not be checked.
   193  spelling-ignore-comment-directives=fmt: on,fmt: off,noqa:,noqa,nosec,isort:skip,mypy:
   194  
   195  # List of comma separated words that should not be checked.
   196  spelling-ignore-words=
   197  
   198  # A path to a file that contains the private dictionary; one word per line.
   199  spelling-private-dict-file=
   200  
   201  # Tells whether to store unknown words to the private dictionary (see the
   202  # --spelling-private-dict-file option) instead of raising a message.
   203  spelling-store-unknown-words=no
   204  
   205  
   206  [MISCELLANEOUS]
   207  
   208  # List of note tags to take in consideration, separated by a comma.
   209  notes=FIXME,
   210        XXX
   211  
   212  # Regular expression of note tags to take in consideration.
   213  #notes-rgx=
   214  
   215  
   216  [BASIC]
   217  
   218  # Naming style matching correct argument names.
   219  argument-naming-style=snake_case
   220  
   221  # Regular expression matching correct argument names. Overrides argument-
   222  # naming-style. If left empty, argument names will be checked with the set
   223  # naming style.
   224  #argument-rgx=
   225  
   226  # Naming style matching correct attribute names.
   227  attr-naming-style=snake_case
   228  
   229  # Regular expression matching correct attribute names. Overrides attr-naming-
   230  # style. If left empty, attribute names will be checked with the set naming
   231  # style.
   232  #attr-rgx=
   233  
   234  # Bad variable names which should always be refused, separated by a comma.
   235  bad-names=foo,
   236            bar,
   237            baz,
   238            toto,
   239            tutu,
   240            tata
   241  
   242  # Bad variable names regexes, separated by a comma. If names match any regex,
   243  # they will always be refused
   244  bad-names-rgxs=
   245  
   246  # Naming style matching correct class attribute names.
   247  class-attribute-naming-style=any
   248  
   249  # Regular expression matching correct class attribute names. Overrides class-
   250  # attribute-naming-style. If left empty, class attribute names will be checked
   251  # with the set naming style.
   252  #class-attribute-rgx=
   253  
   254  # Naming style matching correct class constant names.
   255  class-const-naming-style=UPPER_CASE
   256  
   257  # Regular expression matching correct class constant names. Overrides class-
   258  # const-naming-style. If left empty, class constant names will be checked with
   259  # the set naming style.
   260  #class-const-rgx=
   261  
   262  # Naming style matching correct class names.
   263  class-naming-style=PascalCase
   264  
   265  # Regular expression matching correct class names. Overrides class-naming-
   266  # style. If left empty, class names will be checked with the set naming style.
   267  #class-rgx=
   268  
   269  # Naming style matching correct constant names.
   270  const-naming-style=UPPER_CASE
   271  
   272  # Regular expression matching correct constant names. Overrides const-naming-
   273  # style. If left empty, constant names will be checked with the set naming
   274  # style.
   275  #const-rgx=
   276  
   277  # Minimum line length for functions/classes that require docstrings, shorter
   278  # ones are exempt.
   279  docstring-min-length=-1
   280  
   281  # Naming style matching correct function names.
   282  function-naming-style=snake_case
   283  
   284  # Regular expression matching correct function names. Overrides function-
   285  # naming-style. If left empty, function names will be checked with the set
   286  # naming style.
   287  #function-rgx=
   288  
   289  # Good variable names which should always be accepted, separated by a comma.
   290  good-names=i,
   291             j,
   292             k,
   293             ex,
   294             Run,
   295             _
   296  
   297  # Good variable names regexes, separated by a comma. If names match any regex,
   298  # they will always be accepted
   299  good-names-rgxs=
   300  
   301  # Include a hint for the correct naming format with invalid-name.
   302  include-naming-hint=no
   303  
   304  # Naming style matching correct inline iteration names.
   305  inlinevar-naming-style=any
   306  
   307  # Regular expression matching correct inline iteration names. Overrides
   308  # inlinevar-naming-style. If left empty, inline iteration names will be checked
   309  # with the set naming style.
   310  #inlinevar-rgx=
   311  
   312  # Naming style matching correct method names.
   313  method-naming-style=snake_case
   314  
   315  # Regular expression matching correct method names. Overrides method-naming-
   316  # style. If left empty, method names will be checked with the set naming style.
   317  #method-rgx=
   318  
   319  # Naming style matching correct module names.
   320  module-naming-style=snake_case
   321  
   322  # Regular expression matching correct module names. Overrides module-naming-
   323  # style. If left empty, module names will be checked with the set naming style.
   324  #module-rgx=
   325  
   326  # Colon-delimited sets of names that determine each other's naming style when
   327  # the name regexes allow several styles.
   328  name-group=
   329  
   330  # Regular expression which should only match function or class names that do
   331  # not require a docstring.
   332  no-docstring-rgx=^_
   333  
   334  # List of decorators that produce properties, such as abc.abstractproperty. Add
   335  # to this list to register other decorators that produce valid properties.
   336  # These decorators are taken in consideration only for invalid-name.
   337  property-classes=abc.abstractproperty
   338  
   339  # Regular expression matching correct type variable names. If left empty, type
   340  # variable names will be checked with the set naming style.
   341  #typevar-rgx=
   342  
   343  # Naming style matching correct variable names.
   344  variable-naming-style=snake_case
   345  
   346  # Regular expression matching correct variable names. Overrides variable-
   347  # naming-style. If left empty, variable names will be checked with the set
   348  # naming style.
   349  #variable-rgx=
   350  
   351  
   352  [SIMILARITIES]
   353  
   354  # Comments are removed from the similarity computation
   355  ignore-comments=yes
   356  
   357  # Docstrings are removed from the similarity computation
   358  ignore-docstrings=yes
   359  
   360  # Imports are removed from the similarity computation
   361  ignore-imports=no
   362  
   363  # Signatures are removed from the similarity computation
   364  ignore-signatures=no
   365  
   366  # Minimum lines number of a similarity.
   367  min-similarity-lines=4
   368  
   369  
   370  [VARIABLES]
   371  
   372  # List of additional names supposed to be defined in builtins. Remember that
   373  # you should avoid defining new builtins when possible.
   374  additional-builtins=
   375  
   376  # Tells whether unused global variables should be treated as a violation.
   377  allow-global-unused-variables=yes
   378  
   379  # List of names allowed to shadow builtins
   380  allowed-redefined-builtins=
   381  
   382  # List of strings which can identify a callback function by name. A callback
   383  # name must start or end with one of those strings.
   384  callbacks=cb_,
   385            _cb
   386  
   387  # A regular expression matching the name of dummy variables (i.e. expected to
   388  # not be used).
   389  dummy-variables-rgx=_+$|(_[a-zA-Z0-9_]*[a-zA-Z0-9]+?$)|dummy|^ignored_|^unused_
   390  
   391  # Argument names that match this expression will be ignored. Default to name
   392  # with leading underscore.
   393  ignored-argument-names=_.*|^ignored_|^unused_
   394  
   395  # Tells whether we should check for unused import in __init__ files.
   396  init-import=no
   397  
   398  # List of qualified module names which can have objects that can redefine
   399  # builtins.
   400  redefining-builtins-modules=six.moves,past.builtins,future.builtins,builtins,io
   401  
   402  
   403  [TYPECHECK]
   404  
   405  # List of decorators that produce context managers, such as
   406  # contextlib.contextmanager. Add to this list to register other decorators that
   407  # produce valid context managers.
   408  contextmanager-decorators=contextlib.contextmanager
   409  
   410  # List of members which are set dynamically and missed by pylint inference
   411  # system, and so shouldn't trigger E1101 when accessed. Python regular
   412  # expressions are accepted.
   413  generated-members=
   414  
   415  # Tells whether missing members accessed in mixin class should be ignored. A
   416  # class is considered mixin if its name matches the mixin-class-rgx option.
   417  ignore-mixin-members=yes
   418  
   419  # Tells whether to warn about missing members when the owner of the attribute
   420  # is inferred to be None.
   421  ignore-none=yes
   422  
   423  # This flag controls whether pylint should warn about no-member and similar
   424  # checks whenever an opaque object is returned when inferring. The inference
   425  # can return multiple potential results while evaluating a Python object, but
   426  # some branches might not be evaluated, which results in partial inference. In
   427  # that case, it might be useful to still emit no-member and other checks for
   428  # the rest of the inferred objects.
   429  ignore-on-opaque-inference=yes
   430  
   431  # List of class names for which member attributes should not be checked (useful
   432  # for classes with dynamically set attributes). This supports the use of
   433  # qualified names.
   434  ignored-classes=optparse.Values,thread._local,_thread._local
   435  
   436  # List of module names for which member attributes should not be checked
   437  # (useful for modules/projects where namespaces are manipulated during runtime
   438  # and thus existing member attributes cannot be deduced by static analysis). It
   439  # supports qualified module names, as well as Unix pattern matching.
   440  ignored-modules=
   441  
   442  # Show a hint with possible names when a member name was not found. The aspect
   443  # of finding the hint is based on edit distance.
   444  missing-member-hint=yes
   445  
   446  # The minimum edit distance a name should have in order to be considered a
   447  # similar match for a missing member name.
   448  missing-member-hint-distance=1
   449  
   450  # The total number of similar names that should be taken in consideration when
   451  # showing a hint for a missing member.
   452  missing-member-max-choices=1
   453  
   454  # Regex pattern to define which classes are considered mixins ignore-mixin-
   455  # members is set to 'yes'
   456  mixin-class-rgx=.*[Mm]ixin
   457  
   458  # List of decorators that change the signature of a decorated function.
   459  signature-mutators=
   460  
   461  
   462  [STRING]
   463  
   464  # This flag controls whether inconsistent-quotes generates a warning when the
   465  # character used as a quote delimiter is used inconsistently within a module.
   466  check-quote-consistency=no
   467  
   468  # This flag controls whether the implicit-str-concat should generate a warning
   469  # on implicit string concatenation in sequences defined over several lines.
   470  check-str-concat-over-line-jumps=no
   471  
   472  
   473  [IMPORTS]
   474  
   475  # List of modules that can be imported at any level, not just the top level
   476  # one.
   477  allow-any-import-level=
   478  
   479  # Allow wildcard imports from modules that define __all__.
   480  allow-wildcard-with-all=no
   481  
   482  # Deprecated modules which should not be used, separated by a comma.
   483  deprecated-modules=
   484  
   485  # Output a graph (.gv or any supported image format) of external dependencies
   486  # to the given file (report RP0402 must not be disabled).
   487  ext-import-graph=
   488  
   489  # Output a graph (.gv or any supported image format) of all (i.e. internal and
   490  # external) dependencies to the given file (report RP0402 must not be
   491  # disabled).
   492  import-graph=
   493  
   494  # Output a graph (.gv or any supported image format) of internal dependencies
   495  # to the given file (report RP0402 must not be disabled).
   496  int-import-graph=
   497  
   498  # Force import order to recognize a module as part of the standard
   499  # compatibility libraries.
   500  known-standard-library=
   501  
   502  # Force import order to recognize a module as part of a third party library.
   503  known-third-party=enchant
   504  
   505  # Couples of modules and preferred modules, separated by a comma.
   506  preferred-modules=
   507  
   508  
   509  [DESIGN]
   510  
   511  # List of regular expressions of class ancestor names to ignore when counting
   512  # public methods (see R0903)
   513  exclude-too-few-public-methods=
   514  
   515  # List of qualified class names to ignore when counting class parents (see
   516  # R0901)
   517  ignored-parents=
   518  
   519  # Maximum number of arguments for function / method.
   520  max-args=5
   521  
   522  # Maximum number of attributes for a class (see R0902).
   523  max-attributes=7
   524  
   525  # Maximum number of boolean expressions in an if statement (see R0916).
   526  max-bool-expr=5
   527  
   528  # Maximum number of branch for function / method body.
   529  max-branches=12
   530  
   531  # Maximum number of locals for function / method body.
   532  max-locals=15
   533  
   534  # Maximum number of parents for a class (see R0901).
   535  max-parents=7
   536  
   537  # Maximum number of public methods for a class (see R0904).
   538  max-public-methods=20
   539  
   540  # Maximum number of return / yield for function / method body.
   541  max-returns=6
   542  
   543  # Maximum number of statements in function / method body.
   544  max-statements=50
   545  
   546  # Minimum number of public methods for a class (see R0903).
   547  min-public-methods=2
   548  
   549  
   550  [CLASSES]
   551  
   552  # Warn about protected attribute access inside special methods
   553  check-protected-access-in-special-methods=no
   554  
   555  # List of method names used to declare (i.e. assign) instance attributes.
   556  defining-attr-methods=__init__,
   557                        __new__,
   558                        setUp,
   559                        __post_init__
   560  
   561  # List of member names, which should be excluded from the protected access
   562  # warning.
   563  exclude-protected=_asdict,
   564                    _fields,
   565                    _replace,
   566                    _source,
   567                    _make
   568  
   569  # List of valid names for the first argument in a class method.
   570  valid-classmethod-first-arg=cls
   571  
   572  # List of valid names for the first argument in a metaclass class method.
   573  valid-metaclass-classmethod-first-arg=cls
   574  
   575  
   576  [EXCEPTIONS]
   577  
   578  # Exceptions that will emit a warning when being caught. Defaults to
   579  # "BaseException, Exception".
   580  overgeneral-exceptions=builtins.BaseException,
   581                         builtins.Exception