pylintrc 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. [MESSAGES CONTROL]
  2. # Disable the message, report, category or checker with the given id(s).
  3. # TODO: Shrink this list to as small as possible.
  4. disable=
  5. design,
  6. similarities,
  7. bad-continuation,
  8. fixme,
  9. import-error,
  10. invalid-name,
  11. locally-disabled,
  12. locally-enabled,
  13. missing-docstring,
  14. star-args,
  15. [REPORTS]
  16. # Don't write out full reports, just messages.
  17. reports=no
  18. [BASIC]
  19. # Regular expression which should only match correct function names.
  20. function-rgx=^(?:(?P<exempt>setUp|tearDown|setUpModule|tearDownModule)|(?P<camel_case>_?[A-Z][a-zA-Z0-9]*))$
  21. # Regular expression which should only match correct method names.
  22. 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_]*))$
  23. # Regular expression which should only match correct argument names.
  24. argument-rgx=^[a-z][a-z0-9_]*$
  25. # Regular expression which should only match correct variable names.
  26. variable-rgx=^[a-z][a-z0-9_]*$
  27. # Good variable names which should always be accepted, separated by a comma.
  28. good-names=main,_
  29. # List of builtins function names that should not be used, separated by a comma.
  30. bad-functions=apply,input,reduce
  31. [VARIABLES]
  32. # Tells wether we should check for unused import in __init__ files.
  33. init-import=no
  34. # A regular expression matching names used for dummy variables (i.e. not used).
  35. dummy-variables-rgx=^_.*$|dummy
  36. [TYPECHECK]
  37. # Tells wether missing members accessed in mixin class should be ignored. A
  38. # mixin class is detected if its name ends with "mixin" (case insensitive).
  39. ignore-mixin-members=yes
  40. [FORMAT]
  41. # Maximum number of lines in a module.
  42. max-module-lines=10000
  43. # We use two spaces for indents, instead of the usual four spaces or tab.
  44. indent-string=' '