[MASTER]

# Do not lint generated protobuf files.
ignore=sheriff_pb2.py

[MESSAGES CONTROL]

enable=python3

# Disable the message, report, category or checker with the given id(s).
# TODO: Shrink this list to as small as possible.
# Disable some specific python3 incompatibilities that we cannot use yet in
# Python 2.7.
disable=
  design,
  similarities,
  wrong-import-order,
  simplifiable-if-statement,
  singleton-comparison,
  unsubscriptable-object,
  redefined-variable-type,
  using-constant-test,
  wrong-import-position,
  too-many-nested-blocks,

  fixme,
  global-statement,
  import-error,
  locally-disabled,
  locally-enabled,
  missing-docstring,
  no-init,
  no-member,
  no-name-in-module,
  no-self-use,
  protected-access,
  star-args,
  super-on-old-class,

  basestring-builtin,
  range-builtin-not-iterating,
  map-builtin-not-iterating,
  zip-builtin-not-iterating,
  long-builtin,
  round-builtin,

[REPORTS]

# Don't write out full reports, just messages.
reports=no


[BASIC]

# Regular expression which should only match correct function names.
function-rgx=^(?:(?P<exempt>setUp|tearDown|setUpModule|tearDownModule)|(?P<camel_case>_?[A-Z][a-zA-Z0-9]*))$

# Regular expression which should only match correct method names.
method-rgx=^(?:(?P<exempt>_[a-z0-9_]+__|get|post|run|put|execute|_pre_put_hook|_post_put_hook|_post_get_hook|_pre_delete_hook|runTest|setUp|tearDown|setUpTestCase|tearDownTestCase|setupSelf|tearDownClass|setUpClass)|(?P<camel_case>(_{0,2}|test|assert)[A-Z][a-zA-Z0-9_]*))$

# Regular expression which should only match correct instance attribute names.
# TODO(crbug.com/1090608): remove the crbug_1090608 branch of this regex when
# that pylint bug is fixed.
attr-rgx=^(?:_{0,2}[a-z][a-z0-9_]*|(?P<crbug_1090608>Start|_Schedule|Fail))$

# Regular expression which should only match correct argument names.
argument-rgx=^[a-z][a-z0-9_]*$

# Regular expression which should only match correct variable names.
variable-rgx=^[a-z][a-z0-9_]*$

# Good variable names which should always be accepted, separated by a comma.
good-names=main,_,maxDiff

# List of builtins function names that should not be used, separated by a comma.
bad-functions=apply,input,reduce


[VARIABLES]

# Tells whether we should check for unused import in __init__ files.
init-import=no

# A regular expression matching names used for dummy variables (i.e. not used).
dummy-variables-rgx=^\*{0,2}(_$|unused_)


[TYPECHECK]

# Tells whether missing members accessed in mixin class should be ignored. A
# mixin class is detected if its name ends with "mixin" (case insensitive).
ignore-mixin-members=yes


[FORMAT]

# We use two spaces for indents, instead of the usual four spaces or tab.
indent-string='  '
