github.com/munnerz/test-infra@v0.0.0-20190108210205-ce3d181dc989/gubernator/.pylintrc (about)

     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=third_party
    13  
    14  # Add files or directories matching the regex patterns to the blacklist. The
    15  # regex matches against base names, not paths.
    16  ignore-patterns=
    17  
    18  # Pickle collected data for later comparisons.
    19  persistent=no
    20  
    21  # List of plugins (as comma separated values of python modules names) to load,
    22  # usually to register additional checkers.
    23  load-plugins=
    24  
    25  # Use multiple processes to speed up Pylint.
    26  jobs=4
    27  
    28  # Allow loading of arbitrary C extensions. Extensions are imported into the
    29  # active Python interpreter and may run arbitrary code.
    30  unsafe-load-any-extension=no
    31  
    32  # A comma-separated list of package or module names from where C extensions may
    33  # be loaded. Extensions are loading into the active Python interpreter and may
    34  # run arbitrary code
    35  extension-pkg-whitelist=
    36  
    37  
    38  [MESSAGES CONTROL]
    39  
    40  # Only show warnings with the listed confidence levels. Leave empty to show
    41  # all. Valid levels: HIGH, INFERENCE, INFERENCE_FAILURE, UNDEFINED
    42  confidence=
    43  
    44  # Enable the message, report, category or checker with the given id(s). You can
    45  # either give multiple identifier separated by comma (,) or put this option
    46  # multiple time (only on the command line, not in the configuration file where
    47  # it should appear only once). See also the "--disable" option for examples.
    48  #enable=
    49  
    50  # Disable the message, report, category or checker with the given id(s). You
    51  # can either give multiple identifiers separated by comma (,) or put this
    52  # option multiple times (only on the command line, not in the configuration
    53  # file where it should appear only once).You can also use "--disable=all" to
    54  # disable everything first and then reenable specific checks. For example, if
    55  # you want to run only the similarities checker, you can use "--disable=all
    56  # --enable=similarities". If you want to run only the classes checker, but have
    57  # no Warning level messages displayed, use"--disable=all --enable=classes
    58  # --disable=W"
    59  disable=import-star-module-level,old-octal-literal,oct-method,print-statement,unpacking-in-except,parameter-unpacking,backtick,old-raise-syntax,old-ne-operator,long-suffix,dict-view-method,dict-iter-method,metaclass-assignment,next-method-called,raising-string,indexing-exception,raw_input-builtin,long-builtin,file-builtin,execfile-builtin,coerce-builtin,cmp-builtin,buffer-builtin,basestring-builtin,apply-builtin,filter-builtin-not-iterating,using-cmp-argument,useless-suppression,range-builtin-not-iterating,suppressed-message,missing-docstring,no-absolute-import,old-division,cmp-method,reload-builtin,zip-builtin-not-iterating,intern-builtin,unichr-builtin,reduce-builtin,standarderror-builtin,unicode-builtin,xrange-builtin,coerce-method,delslice-method,getslice-method,setslice-method,input-builtin,round-builtin,hex-method,nonzero-method,map-builtin-not-iterating,relative-import,invalid-name,bad-continuation,no-member,locally-disabled,fixme
    60  
    61  
    62  [REPORTS]
    63  
    64  # Set the output format. Available formats are text, parseable, colorized, msvs
    65  # (visual studio) and html. You can also give a reporter class, eg
    66  # mypackage.mymodule.MyReporterClass.
    67  output-format=text
    68  
    69  # Put messages in a separate file for each module / package specified on the
    70  # command line instead of printing them on stdout. Reports (if any) will be
    71  # written in a file name "pylint_global.[txt|html]". This option is deprecated
    72  # and it will be removed in Pylint 2.0.
    73  files-output=no
    74  
    75  # Tells whether to display a full report or only the messages
    76  reports=no
    77  
    78  # Python expression which should return a note less than 10 (10 is the highest
    79  # note). You have access to the variables errors warning, statement which
    80  # respectively contain the number of errors / warnings messages and the total
    81  # number of statements analyzed. This is used by the global evaluation report
    82  # (RP0004).
    83  evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
    84  
    85  # Template used to display messages. This is a python new-style format string
    86  # used to format the message information. See doc for all details
    87  #msg-template=
    88  
    89  
    90  [BASIC]
    91  
    92  # Good variable names which should always be accepted, separated by a comma
    93  good-names=i,j,k,ex,Run,_
    94  
    95  # Bad variable names which should always be refused, separated by a comma
    96  bad-names=foo,bar,baz,toto,tutu,tata
    97  
    98  # Colon-delimited sets of names that determine each other's naming style when
    99  # the name regexes allow several styles.
   100  name-group=
   101  
   102  # Include a hint for the correct naming format with invalid-name
   103  include-naming-hint=no
   104  
   105  # List of decorators that produce properties, such as abc.abstractproperty. Add
   106  # to this list to register other decorators that produce valid properties.
   107  property-classes=abc.abstractproperty
   108  
   109  # Regular expression matching correct function names
   110  function-rgx=[a-z_][a-z0-9_]{2,30}$
   111  
   112  # Naming hint for function names
   113  function-name-hint=[a-z_][a-z0-9_]{2,30}$
   114  
   115  # Regular expression matching correct variable names
   116  variable-rgx=[a-z_][a-z0-9_]{2,30}$
   117  
   118  # Naming hint for variable names
   119  variable-name-hint=[a-z_][a-z0-9_]{2,30}$
   120  
   121  # Regular expression matching correct constant names
   122  const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$
   123  
   124  # Naming hint for constant names
   125  const-name-hint=(([A-Z_][A-Z0-9_]*)|(__.*__))$
   126  
   127  # Regular expression matching correct attribute names
   128  attr-rgx=[a-z_][a-z0-9_]{2,30}$
   129  
   130  # Naming hint for attribute names
   131  attr-name-hint=[a-z_][a-z0-9_]{2,30}$
   132  
   133  # Regular expression matching correct argument names
   134  argument-rgx=[a-z_][a-z0-9_]{2,30}$
   135  
   136  # Naming hint for argument names
   137  argument-name-hint=[a-z_][a-z0-9_]{2,30}$
   138  
   139  # Regular expression matching correct class attribute names
   140  class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
   141  
   142  # Naming hint for class attribute names
   143  class-attribute-name-hint=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
   144  
   145  # Regular expression matching correct inline iteration names
   146  inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
   147  
   148  # Naming hint for inline iteration names
   149  inlinevar-name-hint=[A-Za-z_][A-Za-z0-9_]*$
   150  
   151  # Regular expression matching correct class names
   152  class-rgx=[A-Z_][a-zA-Z0-9]+$
   153  
   154  # Naming hint for class names
   155  class-name-hint=[A-Z_][a-zA-Z0-9]+$
   156  
   157  # Regular expression matching correct module names
   158  module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
   159  
   160  # Naming hint for module names
   161  module-name-hint=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
   162  
   163  # Regular expression matching correct method names
   164  method-rgx=[a-z_][a-z0-9_]{2,30}$
   165  
   166  # Naming hint for method names
   167  method-name-hint=[a-z_][a-z0-9_]{2,30}$
   168  
   169  # Regular expression which should only match function or class names that do
   170  # not require a docstring.
   171  no-docstring-rgx=^_
   172  
   173  # Minimum line length for functions/classes that require docstrings, shorter
   174  # ones are exempt.
   175  docstring-min-length=-1
   176  
   177  
   178  [ELIF]
   179  
   180  # Maximum number of nested blocks for function / method body
   181  max-nested-blocks=5
   182  
   183  
   184  [TYPECHECK]
   185  
   186  # Tells whether missing members accessed in mixin class should be ignored. A
   187  # mixin class is detected if its name ends with "mixin" (case insensitive).
   188  ignore-mixin-members=yes
   189  
   190  # List of module names for which member attributes should not be checked
   191  # (useful for modules/projects where namespaces are manipulated during runtime
   192  # and thus existing member attributes cannot be deduced by static analysis. It
   193  # supports qualified module names, as well as Unix pattern matching.
   194  ignored-modules=
   195  
   196  # List of class names for which member attributes should not be checked (useful
   197  # for classes with dynamically set attributes). This supports the use of
   198  # qualified names.
   199  ignored-classes=optparse.Values,thread._local,_thread._local
   200  
   201  # List of members which are set dynamically and missed by pylint inference
   202  # system, and so shouldn't trigger E1101 when accessed. Python regular
   203  # expressions are accepted.
   204  generated-members=
   205  
   206  # List of decorators that produce context managers, such as
   207  # contextlib.contextmanager. Add to this list to register other decorators that
   208  # produce valid context managers.
   209  contextmanager-decorators=contextlib.contextmanager
   210  
   211  
   212  [FORMAT]
   213  
   214  # Maximum number of characters on a single line.
   215  max-line-length=100
   216  
   217  # Regexp for a line that is allowed to be longer than the limit.
   218  ignore-long-lines=^\s*(# )?<?https?://\S+>?$
   219  
   220  # Allow the body of an if to be on the same line as the test if there is no
   221  # else.
   222  single-line-if-stmt=no
   223  
   224  # List of optional constructs for which whitespace checking is disabled. `dict-
   225  # separator` is used to allow tabulation in dicts, etc.: {1  : 1,\n222: 2}.
   226  # `trailing-comma` allows a space between comma and closing bracket: (a, ).
   227  # `empty-line` allows space-only lines.
   228  no-space-check=trailing-comma,dict-separator
   229  
   230  # Maximum number of lines in a module
   231  max-module-lines=1000
   232  
   233  # String used as indentation unit. This is usually "    " (4 spaces) or "\t" (1
   234  # tab).
   235  indent-string='    '
   236  
   237  # Number of spaces of indent required inside a hanging or continued line.
   238  indent-after-paren=4
   239  
   240  # Expected format of line ending, e.g. empty (any line ending), LF or CRLF.
   241  expected-line-ending-format=
   242  
   243  
   244  [MISCELLANEOUS]
   245  
   246  # List of note tags to take in consideration, separated by a comma.
   247  notes=FIXME,XXX,TODO
   248  
   249  
   250  [VARIABLES]
   251  
   252  # Tells whether we should check for unused import in __init__ files.
   253  init-import=no
   254  
   255  # A regular expression matching the name of dummy variables (i.e. expectedly
   256  # not used).
   257  dummy-variables-rgx=(_+[a-zA-Z0-9]*?$)|dummy
   258  
   259  # List of additional names supposed to be defined in builtins. Remember that
   260  # you should avoid to define new builtins when possible.
   261  additional-builtins=
   262  
   263  # List of strings which can identify a callback function by name. A callback
   264  # name must start or end with one of those strings.
   265  callbacks=cb_,_cb
   266  
   267  # List of qualified module names which can have objects that can redefine
   268  # builtins.
   269  redefining-builtins-modules=six.moves,future.builtins
   270  
   271  
   272  [LOGGING]
   273  
   274  # Logging modules to check that the string format arguments are in logging
   275  # function parameter format
   276  logging-modules=logging
   277  
   278  
   279  [SIMILARITIES]
   280  
   281  # Minimum lines number of a similarity.
   282  min-similarity-lines=4
   283  
   284  # Ignore comments when computing similarities.
   285  ignore-comments=yes
   286  
   287  # Ignore docstrings when computing similarities.
   288  ignore-docstrings=yes
   289  
   290  # Ignore imports when computing similarities.
   291  ignore-imports=no
   292  
   293  
   294  [SPELLING]
   295  
   296  # Spelling dictionary name. Available dictionaries: none. To make it working
   297  # install python-enchant package.
   298  spelling-dict=
   299  
   300  # List of comma separated words that should not be checked.
   301  spelling-ignore-words=
   302  
   303  # A path to a file that contains private dictionary; one word per line.
   304  spelling-private-dict-file=
   305  
   306  # Tells whether to store unknown words to indicated private dictionary in
   307  # --spelling-private-dict-file option instead of raising a message.
   308  spelling-store-unknown-words=no
   309  
   310  
   311  [IMPORTS]
   312  
   313  # Deprecated modules which should not be used, separated by a comma
   314  deprecated-modules=regsub,TERMIOS,Bastion,rexec
   315  
   316  # Create a graph of every (i.e. internal and external) dependencies in the
   317  # given file (report RP0402 must not be disabled)
   318  import-graph=
   319  
   320  # Create a graph of external dependencies in the given file (report RP0402 must
   321  # not be disabled)
   322  ext-import-graph=
   323  
   324  # Create a graph of internal dependencies in the given file (report RP0402 must
   325  # not be disabled)
   326  int-import-graph=
   327  
   328  # Force import order to recognize a module as part of the standard
   329  # compatibility libraries.
   330  known-standard-library=
   331  
   332  # Force import order to recognize a module as part of a third party library.
   333  known-third-party=enchant
   334  
   335  # Analyse import fallback blocks. This can be used to support both Python 2 and
   336  # 3 compatible code, which means that the block might have code that exists
   337  # only in one or another interpreter, leading to false positives when analysed.
   338  analyse-fallback-blocks=no
   339  
   340  
   341  [DESIGN]
   342  
   343  # Maximum number of arguments for function / method
   344  max-args=7
   345  
   346  # Argument names that match this expression will be ignored. Default to name
   347  # with leading underscore
   348  ignored-argument-names=_.*
   349  
   350  # Maximum number of locals for function / method body
   351  max-locals=15
   352  
   353  # Maximum number of return / yield for function / method body
   354  max-returns=6
   355  
   356  # Maximum number of branch for function / method body
   357  max-branches=12
   358  
   359  # Maximum number of statements in function / method body
   360  max-statements=50
   361  
   362  # Maximum number of parents for a class (see R0901).
   363  max-parents=7
   364  
   365  # Maximum number of attributes for a class (see R0902).
   366  max-attributes=7
   367  
   368  # Minimum number of public methods for a class (see R0903).
   369  min-public-methods=0
   370  
   371  # Maximum number of public methods for a class (see R0904).
   372  max-public-methods=20
   373  
   374  # Maximum number of boolean expressions in a if statement
   375  max-bool-expr=5
   376  
   377  
   378  [CLASSES]
   379  
   380  # List of method names used to declare (i.e. assign) instance attributes.
   381  defining-attr-methods=__init__,__new__,setUp
   382  
   383  # List of valid names for the first argument in a class method.
   384  valid-classmethod-first-arg=cls
   385  
   386  # List of valid names for the first argument in a metaclass class method.
   387  valid-metaclass-classmethod-first-arg=mcs
   388  
   389  # List of member names, which should be excluded from the protected access
   390  # warning.
   391  exclude-protected=_asdict,_fields,_replace,_source,_make
   392  
   393  
   394  [EXCEPTIONS]
   395  
   396  # Exceptions that will emit a warning when being caught. Defaults to
   397  # "Exception"
   398  overgeneral-exceptions=Exception