pylintrc 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. [MESSAGES CONTROL]
  2. # Disable the message, report, category or checker with the given id(s).
  3. # TODO(telemetry-team): Shrink this list to as small as possible.
  4. disable=
  5. design,
  6. similarities,
  7. abstract-class-little-used,
  8. abstract-class-not-used,
  9. bad-builtin,
  10. bad-continuation,
  11. broad-except,
  12. fixme,
  13. global-statement,
  14. interface-not-implemented,
  15. invalid-name,
  16. locally-disabled,
  17. locally-enabled,
  18. logging-not-lazy,
  19. missing-docstring,
  20. no-member,
  21. no-self-use,
  22. protected-access,
  23. star-args,
  24. too-many-function-args
  25. [REPORTS]
  26. # Don't write out full reports, just messages.
  27. reports=no
  28. [BASIC]
  29. # Regular expression which should only match correct function names.
  30. function-rgx=^(?:(?P<exempt>setUp|tearDown|setUpModule|tearDownModule)|(?P<camel_case>_?[A-Z][a-zA-Z0-9]*))$
  31. # Regular expression which should only match correct method names.
  32. method-rgx=^(?:(?P<exempt>_[a-z0-9_]+__|get|post|runTest|setUp|tearDown|setUpTestCase|tearDownTestCase|setupSelf|tearDownClass|setUpClass)|(?P<camel_case>(_{0,2}|test|assert)[A-Z][a-zA-Z0-9_]*))$
  33. # Regular expression which should only match correct argument names.
  34. argument-rgx=^[a-z][a-z0-9_]*$
  35. # Regular expression which should only match correct variable names.
  36. variable-rgx=^[a-z][a-z0-9_]*$
  37. # Good variable names which should always be accepted, separated by a comma.
  38. good-names=main,_
  39. # List of builtins function names that should not be used, separated by a comma.
  40. bad-functions=apply,input,reduce
  41. [VARIABLES]
  42. # Tells wether we should check for unused import in __init__ files.
  43. init-import=no
  44. # A regular expression matching names used for dummy variables (i.e. not used).
  45. dummy-variables-rgx=^\*{0,2}(_$|unused_)
  46. [TYPECHECK]
  47. # Tells wether missing members accessed in mixin class should be ignored. A
  48. # mixin class is detected if its name ends with "mixin" (case insensitive).
  49. ignore-mixin-members=yes
  50. [FORMAT]
  51. # We use two spaces for indents, instead of the usual four spaces or tab.
  52. indent-string=' '