1*33f37583SAndroid Build Coastguard Worker# This Pylint rcfile contains a best-effort configuration to uphold the 2*33f37583SAndroid Build Coastguard Worker# best-practices and style described in the Google Python style guide: 3*33f37583SAndroid Build Coastguard Worker# https://google.github.io/styleguide/pyguide.html 4*33f37583SAndroid Build Coastguard Worker# 5*33f37583SAndroid Build Coastguard Worker# Its canonical open-source location is: 6*33f37583SAndroid Build Coastguard Worker# https://google.github.io/styleguide/pylintrc 7*33f37583SAndroid Build Coastguard Worker 8*33f37583SAndroid Build Coastguard Worker[MASTER] 9*33f37583SAndroid Build Coastguard Worker 10*33f37583SAndroid Build Coastguard Worker# Add files or directories to the blacklist. They should be base names, not 11*33f37583SAndroid Build Coastguard Worker# paths. 12*33f37583SAndroid Build Coastguard Workerignore=third_party 13*33f37583SAndroid Build Coastguard Worker 14*33f37583SAndroid Build Coastguard Worker# Add files or directories matching the regex patterns to the blacklist. The 15*33f37583SAndroid Build Coastguard Worker# regex matches against base names, not paths. 16*33f37583SAndroid Build Coastguard Workerignore-patterns= 17*33f37583SAndroid Build Coastguard Worker 18*33f37583SAndroid Build Coastguard Worker# Pickle collected data for later comparisons. 19*33f37583SAndroid Build Coastguard Workerpersistent=no 20*33f37583SAndroid Build Coastguard Worker 21*33f37583SAndroid Build Coastguard Worker# List of plugins (as comma separated values of python modules names) to load, 22*33f37583SAndroid Build Coastguard Worker# usually to register additional checkers. 23*33f37583SAndroid Build Coastguard Workerload-plugins= 24*33f37583SAndroid Build Coastguard Worker 25*33f37583SAndroid Build Coastguard Worker# Use multiple processes to speed up Pylint. 26*33f37583SAndroid Build Coastguard Workerjobs=4 27*33f37583SAndroid Build Coastguard Worker 28*33f37583SAndroid Build Coastguard Worker# Allow loading of arbitrary C extensions. Extensions are imported into the 29*33f37583SAndroid Build Coastguard Worker# active Python interpreter and may run arbitrary code. 30*33f37583SAndroid Build Coastguard Workerunsafe-load-any-extension=no 31*33f37583SAndroid Build Coastguard Worker 32*33f37583SAndroid Build Coastguard Worker# A comma-separated list of package or module names from where C extensions may 33*33f37583SAndroid Build Coastguard Worker# be loaded. Extensions are loading into the active Python interpreter and may 34*33f37583SAndroid Build Coastguard Worker# run arbitrary code 35*33f37583SAndroid Build Coastguard Workerextension-pkg-whitelist= 36*33f37583SAndroid Build Coastguard Worker 37*33f37583SAndroid Build Coastguard Worker 38*33f37583SAndroid Build Coastguard Worker[MESSAGES CONTROL] 39*33f37583SAndroid Build Coastguard Worker 40*33f37583SAndroid Build Coastguard Worker# Only show warnings with the listed confidence levels. Leave empty to show 41*33f37583SAndroid Build Coastguard Worker# all. Valid levels: HIGH, INFERENCE, INFERENCE_FAILURE, UNDEFINED 42*33f37583SAndroid Build Coastguard Workerconfidence= 43*33f37583SAndroid Build Coastguard Worker 44*33f37583SAndroid Build Coastguard Worker# Enable the message, report, category or checker with the given id(s). You can 45*33f37583SAndroid Build Coastguard Worker# either give multiple identifier separated by comma (,) or put this option 46*33f37583SAndroid Build Coastguard Worker# multiple time (only on the command line, not in the configuration file where 47*33f37583SAndroid Build Coastguard Worker# it should appear only once). See also the "--disable" option for examples. 48*33f37583SAndroid Build Coastguard Worker#enable= 49*33f37583SAndroid Build Coastguard Worker 50*33f37583SAndroid Build Coastguard Worker# Disable the message, report, category or checker with the given id(s). You 51*33f37583SAndroid Build Coastguard Worker# can either give multiple identifiers separated by comma (,) or put this 52*33f37583SAndroid Build Coastguard Worker# option multiple times (only on the command line, not in the configuration 53*33f37583SAndroid Build Coastguard Worker# file where it should appear only once).You can also use "--disable=all" to 54*33f37583SAndroid Build Coastguard Worker# disable everything first and then reenable specific checks. For example, if 55*33f37583SAndroid Build Coastguard Worker# you want to run only the similarities checker, you can use "--disable=all 56*33f37583SAndroid Build Coastguard Worker# --enable=similarities". If you want to run only the classes checker, but have 57*33f37583SAndroid Build Coastguard Worker# no Warning level messages displayed, use"--disable=all --enable=classes 58*33f37583SAndroid Build Coastguard Worker# --disable=W" 59*33f37583SAndroid Build Coastguard Workerdisable=abstract-method, 60*33f37583SAndroid Build Coastguard Worker apply-builtin, 61*33f37583SAndroid Build Coastguard Worker arguments-differ, 62*33f37583SAndroid Build Coastguard Worker attribute-defined-outside-init, 63*33f37583SAndroid Build Coastguard Worker backtick, 64*33f37583SAndroid Build Coastguard Worker bad-option-value, 65*33f37583SAndroid Build Coastguard Worker basestring-builtin, 66*33f37583SAndroid Build Coastguard Worker buffer-builtin, 67*33f37583SAndroid Build Coastguard Worker c-extension-no-member, 68*33f37583SAndroid Build Coastguard Worker consider-using-enumerate, 69*33f37583SAndroid Build Coastguard Worker cmp-builtin, 70*33f37583SAndroid Build Coastguard Worker cmp-method, 71*33f37583SAndroid Build Coastguard Worker coerce-builtin, 72*33f37583SAndroid Build Coastguard Worker coerce-method, 73*33f37583SAndroid Build Coastguard Worker delslice-method, 74*33f37583SAndroid Build Coastguard Worker div-method, 75*33f37583SAndroid Build Coastguard Worker duplicate-code, 76*33f37583SAndroid Build Coastguard Worker eq-without-hash, 77*33f37583SAndroid Build Coastguard Worker execfile-builtin, 78*33f37583SAndroid Build Coastguard Worker file-builtin, 79*33f37583SAndroid Build Coastguard Worker filter-builtin-not-iterating, 80*33f37583SAndroid Build Coastguard Worker fixme, 81*33f37583SAndroid Build Coastguard Worker getslice-method, 82*33f37583SAndroid Build Coastguard Worker global-statement, 83*33f37583SAndroid Build Coastguard Worker hex-method, 84*33f37583SAndroid Build Coastguard Worker idiv-method, 85*33f37583SAndroid Build Coastguard Worker implicit-str-concat-in-sequence, 86*33f37583SAndroid Build Coastguard Worker import-error, 87*33f37583SAndroid Build Coastguard Worker import-self, 88*33f37583SAndroid Build Coastguard Worker import-star-module-level, 89*33f37583SAndroid Build Coastguard Worker inconsistent-return-statements, 90*33f37583SAndroid Build Coastguard Worker input-builtin, 91*33f37583SAndroid Build Coastguard Worker intern-builtin, 92*33f37583SAndroid Build Coastguard Worker invalid-str-codec, 93*33f37583SAndroid Build Coastguard Worker locally-disabled, 94*33f37583SAndroid Build Coastguard Worker long-builtin, 95*33f37583SAndroid Build Coastguard Worker long-suffix, 96*33f37583SAndroid Build Coastguard Worker map-builtin-not-iterating, 97*33f37583SAndroid Build Coastguard Worker misplaced-comparison-constant, 98*33f37583SAndroid Build Coastguard Worker missing-function-docstring, 99*33f37583SAndroid Build Coastguard Worker metaclass-assignment, 100*33f37583SAndroid Build Coastguard Worker next-method-called, 101*33f37583SAndroid Build Coastguard Worker next-method-defined, 102*33f37583SAndroid Build Coastguard Worker no-absolute-import, 103*33f37583SAndroid Build Coastguard Worker no-else-break, 104*33f37583SAndroid Build Coastguard Worker no-else-continue, 105*33f37583SAndroid Build Coastguard Worker no-else-raise, 106*33f37583SAndroid Build Coastguard Worker no-else-return, 107*33f37583SAndroid Build Coastguard Worker no-init, # added 108*33f37583SAndroid Build Coastguard Worker no-member, 109*33f37583SAndroid Build Coastguard Worker no-name-in-module, 110*33f37583SAndroid Build Coastguard Worker no-self-use, 111*33f37583SAndroid Build Coastguard Worker nonzero-method, 112*33f37583SAndroid Build Coastguard Worker oct-method, 113*33f37583SAndroid Build Coastguard Worker old-division, 114*33f37583SAndroid Build Coastguard Worker old-ne-operator, 115*33f37583SAndroid Build Coastguard Worker old-octal-literal, 116*33f37583SAndroid Build Coastguard Worker old-raise-syntax, 117*33f37583SAndroid Build Coastguard Worker parameter-unpacking, 118*33f37583SAndroid Build Coastguard Worker print-statement, 119*33f37583SAndroid Build Coastguard Worker raising-string, 120*33f37583SAndroid Build Coastguard Worker range-builtin-not-iterating, 121*33f37583SAndroid Build Coastguard Worker raw_input-builtin, 122*33f37583SAndroid Build Coastguard Worker rdiv-method, 123*33f37583SAndroid Build Coastguard Worker reduce-builtin, 124*33f37583SAndroid Build Coastguard Worker relative-import, 125*33f37583SAndroid Build Coastguard Worker reload-builtin, 126*33f37583SAndroid Build Coastguard Worker round-builtin, 127*33f37583SAndroid Build Coastguard Worker setslice-method, 128*33f37583SAndroid Build Coastguard Worker signature-differs, 129*33f37583SAndroid Build Coastguard Worker standarderror-builtin, 130*33f37583SAndroid Build Coastguard Worker suppressed-message, 131*33f37583SAndroid Build Coastguard Worker sys-max-int, 132*33f37583SAndroid Build Coastguard Worker too-few-public-methods, 133*33f37583SAndroid Build Coastguard Worker too-many-ancestors, 134*33f37583SAndroid Build Coastguard Worker too-many-arguments, 135*33f37583SAndroid Build Coastguard Worker too-many-boolean-expressions, 136*33f37583SAndroid Build Coastguard Worker too-many-branches, 137*33f37583SAndroid Build Coastguard Worker too-many-instance-attributes, 138*33f37583SAndroid Build Coastguard Worker too-many-locals, 139*33f37583SAndroid Build Coastguard Worker too-many-nested-blocks, 140*33f37583SAndroid Build Coastguard Worker too-many-public-methods, 141*33f37583SAndroid Build Coastguard Worker too-many-return-statements, 142*33f37583SAndroid Build Coastguard Worker too-many-statements, 143*33f37583SAndroid Build Coastguard Worker trailing-newlines, 144*33f37583SAndroid Build Coastguard Worker unichr-builtin, 145*33f37583SAndroid Build Coastguard Worker unicode-builtin, 146*33f37583SAndroid Build Coastguard Worker unnecessary-pass, 147*33f37583SAndroid Build Coastguard Worker unpacking-in-except, 148*33f37583SAndroid Build Coastguard Worker useless-else-on-loop, 149*33f37583SAndroid Build Coastguard Worker useless-object-inheritance, 150*33f37583SAndroid Build Coastguard Worker useless-suppression, 151*33f37583SAndroid Build Coastguard Worker using-cmp-argument, 152*33f37583SAndroid Build Coastguard Worker wrong-import-order, 153*33f37583SAndroid Build Coastguard Worker xrange-builtin, 154*33f37583SAndroid Build Coastguard Worker zip-builtin-not-iterating, 155*33f37583SAndroid Build Coastguard Worker 156*33f37583SAndroid Build Coastguard Worker 157*33f37583SAndroid Build Coastguard Worker[REPORTS] 158*33f37583SAndroid Build Coastguard Worker 159*33f37583SAndroid Build Coastguard Worker# Set the output format. Available formats are text, parseable, colorized, msvs 160*33f37583SAndroid Build Coastguard Worker# (visual studio) and html. You can also give a reporter class, eg 161*33f37583SAndroid Build Coastguard Worker# mypackage.mymodule.MyReporterClass. 162*33f37583SAndroid Build Coastguard Workeroutput-format=text 163*33f37583SAndroid Build Coastguard Worker 164*33f37583SAndroid Build Coastguard Worker# Tells whether to display a full report or only the messages 165*33f37583SAndroid Build Coastguard Workerreports=no 166*33f37583SAndroid Build Coastguard Worker 167*33f37583SAndroid Build Coastguard Worker# Python expression which should return a note less than 10 (10 is the highest 168*33f37583SAndroid Build Coastguard Worker# note). You have access to the variables errors warning, statement which 169*33f37583SAndroid Build Coastguard Worker# respectively contain the number of errors / warnings messages and the total 170*33f37583SAndroid Build Coastguard Worker# number of statements analyzed. This is used by the global evaluation report 171*33f37583SAndroid Build Coastguard Worker# (RP0004). 172*33f37583SAndroid Build Coastguard Workerevaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10) 173*33f37583SAndroid Build Coastguard Worker 174*33f37583SAndroid Build Coastguard Worker# Template used to display messages. This is a python new-style format string 175*33f37583SAndroid Build Coastguard Worker# used to format the message information. See doc for all details 176*33f37583SAndroid Build Coastguard Worker#msg-template= 177*33f37583SAndroid Build Coastguard Worker 178*33f37583SAndroid Build Coastguard Worker 179*33f37583SAndroid Build Coastguard Worker[BASIC] 180*33f37583SAndroid Build Coastguard Worker 181*33f37583SAndroid Build Coastguard Worker# Good variable names which should always be accepted, separated by a comma 182*33f37583SAndroid Build Coastguard Workergood-names=main,_ 183*33f37583SAndroid Build Coastguard Worker 184*33f37583SAndroid Build Coastguard Worker# Bad variable names which should always be refused, separated by a comma 185*33f37583SAndroid Build Coastguard Workerbad-names= 186*33f37583SAndroid Build Coastguard Worker 187*33f37583SAndroid Build Coastguard Worker# Colon-delimited sets of names that determine each other's naming style when 188*33f37583SAndroid Build Coastguard Worker# the name regexes allow several styles. 189*33f37583SAndroid Build Coastguard Workername-group= 190*33f37583SAndroid Build Coastguard Worker 191*33f37583SAndroid Build Coastguard Worker# Include a hint for the correct naming format with invalid-name 192*33f37583SAndroid Build Coastguard Workerinclude-naming-hint=no 193*33f37583SAndroid Build Coastguard Worker 194*33f37583SAndroid Build Coastguard Worker# List of decorators that produce properties, such as abc.abstractproperty. Add 195*33f37583SAndroid Build Coastguard Worker# to this list to register other decorators that produce valid properties. 196*33f37583SAndroid Build Coastguard Workerproperty-classes=abc.abstractproperty,cached_property.cached_property,cached_property.threaded_cached_property,cached_property.cached_property_with_ttl,cached_property.threaded_cached_property_with_ttl 197*33f37583SAndroid Build Coastguard Worker 198*33f37583SAndroid Build Coastguard Worker# Regular expression matching correct function names 199*33f37583SAndroid Build Coastguard Workerfunction-rgx=^(?:(?P<exempt>setUp|tearDown|setUpModule|tearDownModule)|(?P<camel_case>_?[A-Z][a-zA-Z0-9]*)|(?P<snake_case>_?[a-z][a-z0-9_]*))$ 200*33f37583SAndroid Build Coastguard Worker 201*33f37583SAndroid Build Coastguard Worker# Regular expression matching correct variable names 202*33f37583SAndroid Build Coastguard Workervariable-rgx=^[a-z][a-z0-9_]*$ 203*33f37583SAndroid Build Coastguard Worker 204*33f37583SAndroid Build Coastguard Worker# Regular expression matching correct constant names 205*33f37583SAndroid Build Coastguard Workerconst-rgx=^(_?[A-Z][A-Z0-9_]*|__[a-z0-9_]+__|_?[a-z][a-z0-9_]*)$ 206*33f37583SAndroid Build Coastguard Worker 207*33f37583SAndroid Build Coastguard Worker# Regular expression matching correct attribute names 208*33f37583SAndroid Build Coastguard Workerattr-rgx=^_{0,2}[a-z][a-z0-9_]*$ 209*33f37583SAndroid Build Coastguard Worker 210*33f37583SAndroid Build Coastguard Worker# Regular expression matching correct argument names 211*33f37583SAndroid Build Coastguard Workerargument-rgx=^[a-z][a-z0-9_]*$ 212*33f37583SAndroid Build Coastguard Worker 213*33f37583SAndroid Build Coastguard Worker# Regular expression matching correct class attribute names 214*33f37583SAndroid Build Coastguard Workerclass-attribute-rgx=^(_?[A-Z][A-Z0-9_]*|__[a-z0-9_]+__|_?[a-z][a-z0-9_]*)$ 215*33f37583SAndroid Build Coastguard Worker 216*33f37583SAndroid Build Coastguard Worker# Regular expression matching correct inline iteration names 217*33f37583SAndroid Build Coastguard Workerinlinevar-rgx=^[a-z][a-z0-9_]*$ 218*33f37583SAndroid Build Coastguard Worker 219*33f37583SAndroid Build Coastguard Worker# Regular expression matching correct class names 220*33f37583SAndroid Build Coastguard Workerclass-rgx=^_?[A-Z][a-zA-Z0-9]*$ 221*33f37583SAndroid Build Coastguard Worker 222*33f37583SAndroid Build Coastguard Worker# Regular expression matching correct module names 223*33f37583SAndroid Build Coastguard Workermodule-rgx=^(_?[a-z][a-z0-9_]*|__init__)$ 224*33f37583SAndroid Build Coastguard Worker 225*33f37583SAndroid Build Coastguard Worker# Regular expression matching correct method names 226*33f37583SAndroid Build Coastguard Workermethod-rgx=(?x)^(?:(?P<exempt>_[a-z0-9_]+__|runTest|setUp|tearDown|setUpTestCase|tearDownTestCase|setupSelf|tearDownClass|setUpClass|(test|assert)_*[A-Z0-9][a-zA-Z0-9_]*|next)|(?P<camel_case>_{0,2}[A-Z][a-zA-Z0-9_]*)|(?P<snake_case>_{0,2}[a-z][a-z0-9_]*))$ 227*33f37583SAndroid Build Coastguard Worker 228*33f37583SAndroid Build Coastguard Worker# Regular expression which should only match function or class names that do 229*33f37583SAndroid Build Coastguard Worker# not require a docstring. 230*33f37583SAndroid Build Coastguard Workerno-docstring-rgx=(__.*__|main|test.*|.*test|.*Test)$ 231*33f37583SAndroid Build Coastguard Worker 232*33f37583SAndroid Build Coastguard Worker# Minimum line length for functions/classes that require docstrings, shorter 233*33f37583SAndroid Build Coastguard Worker# ones are exempt. 234*33f37583SAndroid Build Coastguard Workerdocstring-min-length=10 235*33f37583SAndroid Build Coastguard Worker 236*33f37583SAndroid Build Coastguard Worker 237*33f37583SAndroid Build Coastguard Worker[TYPECHECK] 238*33f37583SAndroid Build Coastguard Worker 239*33f37583SAndroid Build Coastguard Worker# List of decorators that produce context managers, such as 240*33f37583SAndroid Build Coastguard Worker# contextlib.contextmanager. Add to this list to register other decorators that 241*33f37583SAndroid Build Coastguard Worker# produce valid context managers. 242*33f37583SAndroid Build Coastguard Workercontextmanager-decorators=contextlib.contextmanager,contextlib2.contextmanager 243*33f37583SAndroid Build Coastguard Worker 244*33f37583SAndroid Build Coastguard Worker# Tells whether missing members accessed in mixin class should be ignored. A 245*33f37583SAndroid Build Coastguard Worker# mixin class is detected if its name ends with "mixin" (case insensitive). 246*33f37583SAndroid Build Coastguard Workerignore-mixin-members=yes 247*33f37583SAndroid Build Coastguard Worker 248*33f37583SAndroid Build Coastguard Worker# List of module names for which member attributes should not be checked 249*33f37583SAndroid Build Coastguard Worker# (useful for modules/projects where namespaces are manipulated during runtime 250*33f37583SAndroid Build Coastguard Worker# and thus existing member attributes cannot be deduced by static analysis. It 251*33f37583SAndroid Build Coastguard Worker# supports qualified module names, as well as Unix pattern matching. 252*33f37583SAndroid Build Coastguard Workerignored-modules= 253*33f37583SAndroid Build Coastguard Worker 254*33f37583SAndroid Build Coastguard Worker# List of class names for which member attributes should not be checked (useful 255*33f37583SAndroid Build Coastguard Worker# for classes with dynamically set attributes). This supports the use of 256*33f37583SAndroid Build Coastguard Worker# qualified names. 257*33f37583SAndroid Build Coastguard Workerignored-classes=optparse.Values,thread._local,_thread._local 258*33f37583SAndroid Build Coastguard Worker 259*33f37583SAndroid Build Coastguard Worker# List of members which are set dynamically and missed by pylint inference 260*33f37583SAndroid Build Coastguard Worker# system, and so shouldn't trigger E1101 when accessed. Python regular 261*33f37583SAndroid Build Coastguard Worker# expressions are accepted. 262*33f37583SAndroid Build Coastguard Workergenerated-members= 263*33f37583SAndroid Build Coastguard Worker 264*33f37583SAndroid Build Coastguard Worker 265*33f37583SAndroid Build Coastguard Worker[FORMAT] 266*33f37583SAndroid Build Coastguard Worker 267*33f37583SAndroid Build Coastguard Worker# Maximum number of characters on a single line. 268*33f37583SAndroid Build Coastguard Workermax-line-length=100 269*33f37583SAndroid Build Coastguard Worker 270*33f37583SAndroid Build Coastguard Worker# TODO(https://github.com/PyCQA/pylint/issues/3352): Direct pylint to exempt 271*33f37583SAndroid Build Coastguard Worker# lines made too long by directives to pytype. 272*33f37583SAndroid Build Coastguard Worker 273*33f37583SAndroid Build Coastguard Worker# Regexp for a line that is allowed to be longer than the limit. 274*33f37583SAndroid Build Coastguard Workerignore-long-lines=(?x)( 275*33f37583SAndroid Build Coastguard Worker ^\s*(\#\ )?<?https?://\S+>?$| 276*33f37583SAndroid Build Coastguard Worker ^\s*(from\s+\S+\s+)?import\s+.+$) 277*33f37583SAndroid Build Coastguard Worker 278*33f37583SAndroid Build Coastguard Worker# Allow the body of an if to be on the same line as the test if there is no 279*33f37583SAndroid Build Coastguard Worker# else. 280*33f37583SAndroid Build Coastguard Workersingle-line-if-stmt=yes 281*33f37583SAndroid Build Coastguard Worker 282*33f37583SAndroid Build Coastguard Worker# Maximum number of lines in a module 283*33f37583SAndroid Build Coastguard Workermax-module-lines=99999 284*33f37583SAndroid Build Coastguard Worker 285*33f37583SAndroid Build Coastguard Worker# String used as indentation unit. The internal Google style guide mandates 2 286*33f37583SAndroid Build Coastguard Worker# spaces. Google's externaly-published style guide says 4, consistent with 287*33f37583SAndroid Build Coastguard Worker# PEP 8. Here, we use 2 spaces, for conformity with many open-sourced Google 288*33f37583SAndroid Build Coastguard Worker# projects (like TensorFlow). 289*33f37583SAndroid Build Coastguard Workerindent-string=' ' 290*33f37583SAndroid Build Coastguard Worker 291*33f37583SAndroid Build Coastguard Worker# Number of spaces of indent required inside a hanging or continued line. 292*33f37583SAndroid Build Coastguard Workerindent-after-paren=4 293*33f37583SAndroid Build Coastguard Worker 294*33f37583SAndroid Build Coastguard Worker# Expected format of line ending, e.g. empty (any line ending), LF or CRLF. 295*33f37583SAndroid Build Coastguard Workerexpected-line-ending-format= 296*33f37583SAndroid Build Coastguard Worker 297*33f37583SAndroid Build Coastguard Worker 298*33f37583SAndroid Build Coastguard Worker[MISCELLANEOUS] 299*33f37583SAndroid Build Coastguard Worker 300*33f37583SAndroid Build Coastguard Worker# List of note tags to take in consideration, separated by a comma. 301*33f37583SAndroid Build Coastguard Workernotes=TODO 302*33f37583SAndroid Build Coastguard Worker 303*33f37583SAndroid Build Coastguard Worker 304*33f37583SAndroid Build Coastguard Worker[STRING] 305*33f37583SAndroid Build Coastguard Worker 306*33f37583SAndroid Build Coastguard Worker# This flag controls whether inconsistent-quotes generates a warning when the 307*33f37583SAndroid Build Coastguard Worker# character used as a quote delimiter is used inconsistently within a module. 308*33f37583SAndroid Build Coastguard Workercheck-quote-consistency=yes 309*33f37583SAndroid Build Coastguard Worker 310*33f37583SAndroid Build Coastguard Worker 311*33f37583SAndroid Build Coastguard Worker[VARIABLES] 312*33f37583SAndroid Build Coastguard Worker 313*33f37583SAndroid Build Coastguard Worker# Tells whether we should check for unused import in __init__ files. 314*33f37583SAndroid Build Coastguard Workerinit-import=no 315*33f37583SAndroid Build Coastguard Worker 316*33f37583SAndroid Build Coastguard Worker# A regular expression matching the name of dummy variables (i.e. expectedly 317*33f37583SAndroid Build Coastguard Worker# not used). 318*33f37583SAndroid Build Coastguard Workerdummy-variables-rgx=^\*{0,2}(_$|unused_|dummy_) 319*33f37583SAndroid Build Coastguard Worker 320*33f37583SAndroid Build Coastguard Worker# List of additional names supposed to be defined in builtins. Remember that 321*33f37583SAndroid Build Coastguard Worker# you should avoid to define new builtins when possible. 322*33f37583SAndroid Build Coastguard Workeradditional-builtins= 323*33f37583SAndroid Build Coastguard Worker 324*33f37583SAndroid Build Coastguard Worker# List of strings which can identify a callback function by name. A callback 325*33f37583SAndroid Build Coastguard Worker# name must start or end with one of those strings. 326*33f37583SAndroid Build Coastguard Workercallbacks=cb_,_cb 327*33f37583SAndroid Build Coastguard Worker 328*33f37583SAndroid Build Coastguard Worker# List of qualified module names which can have objects that can redefine 329*33f37583SAndroid Build Coastguard Worker# builtins. 330*33f37583SAndroid Build Coastguard Workerredefining-builtins-modules=six,six.moves,past.builtins,future.builtins,functools 331*33f37583SAndroid Build Coastguard Worker 332*33f37583SAndroid Build Coastguard Worker 333*33f37583SAndroid Build Coastguard Worker[LOGGING] 334*33f37583SAndroid Build Coastguard Worker 335*33f37583SAndroid Build Coastguard Worker# Logging modules to check that the string format arguments are in logging 336*33f37583SAndroid Build Coastguard Worker# function parameter format 337*33f37583SAndroid Build Coastguard Workerlogging-modules=logging,absl.logging,tensorflow.io.logging 338*33f37583SAndroid Build Coastguard Worker 339*33f37583SAndroid Build Coastguard Worker 340*33f37583SAndroid Build Coastguard Worker[SIMILARITIES] 341*33f37583SAndroid Build Coastguard Worker 342*33f37583SAndroid Build Coastguard Worker# Minimum lines number of a similarity. 343*33f37583SAndroid Build Coastguard Workermin-similarity-lines=4 344*33f37583SAndroid Build Coastguard Worker 345*33f37583SAndroid Build Coastguard Worker# Ignore comments when computing similarities. 346*33f37583SAndroid Build Coastguard Workerignore-comments=yes 347*33f37583SAndroid Build Coastguard Worker 348*33f37583SAndroid Build Coastguard Worker# Ignore docstrings when computing similarities. 349*33f37583SAndroid Build Coastguard Workerignore-docstrings=yes 350*33f37583SAndroid Build Coastguard Worker 351*33f37583SAndroid Build Coastguard Worker# Ignore imports when computing similarities. 352*33f37583SAndroid Build Coastguard Workerignore-imports=no 353*33f37583SAndroid Build Coastguard Worker 354*33f37583SAndroid Build Coastguard Worker 355*33f37583SAndroid Build Coastguard Worker[SPELLING] 356*33f37583SAndroid Build Coastguard Worker 357*33f37583SAndroid Build Coastguard Worker# Spelling dictionary name. Available dictionaries: none. To make it working 358*33f37583SAndroid Build Coastguard Worker# install python-enchant package. 359*33f37583SAndroid Build Coastguard Workerspelling-dict= 360*33f37583SAndroid Build Coastguard Worker 361*33f37583SAndroid Build Coastguard Worker# List of comma separated words that should not be checked. 362*33f37583SAndroid Build Coastguard Workerspelling-ignore-words= 363*33f37583SAndroid Build Coastguard Worker 364*33f37583SAndroid Build Coastguard Worker# A path to a file that contains private dictionary; one word per line. 365*33f37583SAndroid Build Coastguard Workerspelling-private-dict-file= 366*33f37583SAndroid Build Coastguard Worker 367*33f37583SAndroid Build Coastguard Worker# Tells whether to store unknown words to indicated private dictionary in 368*33f37583SAndroid Build Coastguard Worker# --spelling-private-dict-file option instead of raising a message. 369*33f37583SAndroid Build Coastguard Workerspelling-store-unknown-words=no 370*33f37583SAndroid Build Coastguard Worker 371*33f37583SAndroid Build Coastguard Worker 372*33f37583SAndroid Build Coastguard Worker[IMPORTS] 373*33f37583SAndroid Build Coastguard Worker 374*33f37583SAndroid Build Coastguard Worker# Deprecated modules which should not be used, separated by a comma 375*33f37583SAndroid Build Coastguard Workerdeprecated-modules=regsub, 376*33f37583SAndroid Build Coastguard Worker TERMIOS, 377*33f37583SAndroid Build Coastguard Worker Bastion, 378*33f37583SAndroid Build Coastguard Worker rexec, 379*33f37583SAndroid Build Coastguard Worker sets 380*33f37583SAndroid Build Coastguard Worker 381*33f37583SAndroid Build Coastguard Worker# Create a graph of every (i.e. internal and external) dependencies in the 382*33f37583SAndroid Build Coastguard Worker# given file (report RP0402 must not be disabled) 383*33f37583SAndroid Build Coastguard Workerimport-graph= 384*33f37583SAndroid Build Coastguard Worker 385*33f37583SAndroid Build Coastguard Worker# Create a graph of external dependencies in the given file (report RP0402 must 386*33f37583SAndroid Build Coastguard Worker# not be disabled) 387*33f37583SAndroid Build Coastguard Workerext-import-graph= 388*33f37583SAndroid Build Coastguard Worker 389*33f37583SAndroid Build Coastguard Worker# Create a graph of internal dependencies in the given file (report RP0402 must 390*33f37583SAndroid Build Coastguard Worker# not be disabled) 391*33f37583SAndroid Build Coastguard Workerint-import-graph= 392*33f37583SAndroid Build Coastguard Worker 393*33f37583SAndroid Build Coastguard Worker# Force import order to recognize a module as part of the standard 394*33f37583SAndroid Build Coastguard Worker# compatibility libraries. 395*33f37583SAndroid Build Coastguard Workerknown-standard-library= 396*33f37583SAndroid Build Coastguard Worker 397*33f37583SAndroid Build Coastguard Worker# Force import order to recognize a module as part of a third party library. 398*33f37583SAndroid Build Coastguard Workerknown-third-party=enchant, absl 399*33f37583SAndroid Build Coastguard Worker 400*33f37583SAndroid Build Coastguard Worker# Analyse import fallback blocks. This can be used to support both Python 2 and 401*33f37583SAndroid Build Coastguard Worker# 3 compatible code, which means that the block might have code that exists 402*33f37583SAndroid Build Coastguard Worker# only in one or another interpreter, leading to false positives when analysed. 403*33f37583SAndroid Build Coastguard Workeranalyse-fallback-blocks=no 404*33f37583SAndroid Build Coastguard Worker 405*33f37583SAndroid Build Coastguard Worker 406*33f37583SAndroid Build Coastguard Worker[CLASSES] 407*33f37583SAndroid Build Coastguard Worker 408*33f37583SAndroid Build Coastguard Worker# List of method names used to declare (i.e. assign) instance attributes. 409*33f37583SAndroid Build Coastguard Workerdefining-attr-methods=__init__, 410*33f37583SAndroid Build Coastguard Worker __new__, 411*33f37583SAndroid Build Coastguard Worker setUp 412*33f37583SAndroid Build Coastguard Worker 413*33f37583SAndroid Build Coastguard Worker# List of member names, which should be excluded from the protected access 414*33f37583SAndroid Build Coastguard Worker# warning. 415*33f37583SAndroid Build Coastguard Workerexclude-protected=_asdict, 416*33f37583SAndroid Build Coastguard Worker _fields, 417*33f37583SAndroid Build Coastguard Worker _replace, 418*33f37583SAndroid Build Coastguard Worker _source, 419*33f37583SAndroid Build Coastguard Worker _make 420*33f37583SAndroid Build Coastguard Worker 421*33f37583SAndroid Build Coastguard Worker# List of valid names for the first argument in a class method. 422*33f37583SAndroid Build Coastguard Workervalid-classmethod-first-arg=cls, 423*33f37583SAndroid Build Coastguard Worker class_ 424*33f37583SAndroid Build Coastguard Worker 425*33f37583SAndroid Build Coastguard Worker# List of valid names for the first argument in a metaclass class method. 426*33f37583SAndroid Build Coastguard Workervalid-metaclass-classmethod-first-arg=mcs 427*33f37583SAndroid Build Coastguard Worker 428*33f37583SAndroid Build Coastguard Worker 429*33f37583SAndroid Build Coastguard Worker[EXCEPTIONS] 430*33f37583SAndroid Build Coastguard Worker 431*33f37583SAndroid Build Coastguard Worker# Exceptions that will emit a warning when being caught. Defaults to 432*33f37583SAndroid Build Coastguard Worker# "Exception" 433*33f37583SAndroid Build Coastguard Workerovergeneral-exceptions=builtins.StandardError, 434*33f37583SAndroid Build Coastguard Worker builtins.Exception, 435*33f37583SAndroid Build Coastguard Worker builtins.BaseException 436