pylintrc 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. [MESSAGES CONTROL]
  2. # bad-whitespace: This rule is violated so often, it hides more important warnings.
  3. # dangerous-default-value: No elegant alternative to {}; modifying arguments is a bad idea anyway,
  4. # unless it is explicitly documented as the purpose of the function.
  5. # missing-docstring: Maybe later.
  6. # multiple-statements: Maybe later.
  7. # star-args: Not inherently bad, use with care though.
  8. # too-many-public-methods: Impractical: some wxWidgets base classes have lots of methods.
  9. disable=bad-whitespace, dangerous-default-value, missing-docstring, multiple-statements, star-args, too-many-public-methods
  10. [BASIC]
  11. # List of builtins function names that should not be used, separated by a comma
  12. bad-functions=apply,input,file
  13. # Regular expression matching correct function names
  14. function-rgx=[a-z_][A-Za-z0-9_]{2,30}$
  15. # Regular expression matching correct variable names
  16. variable-rgx=[a-z_][A-Za-z0-9_]{0,30}$
  17. # Regular expression matching correct constant names
  18. const-rgx=(([A-Za-z_][A-Za-z0-9_]*)|(__.*__))$
  19. # Regular expression matching correct attribute names
  20. attr-rgx=[a-z_][A-Za-z0-9_]{2,30}$
  21. # Regular expression matching correct argument names
  22. argument-rgx=[a-z_][A-Za-z0-9_]{0,30}$
  23. # Regular expression matching correct method names
  24. method-rgx=[a-z_][A-Za-z0-9_]{2,40}$|(On|Mac)[A-Z][A-Za-z0-9_]{2,30}$
  25. [VARIABLES]
  26. # A regular expression matching the name of dummy variables (i.e. expectedly
  27. # not used).
  28. dummy-variables-rgx=_$|dummy|event
  29. [FORMAT]
  30. # Maximum number of characters on a single line.
  31. max-line-length=160
  32. # Maximum number of lines in a module
  33. max-module-lines=2000
  34. [DESIGN]
  35. # To see only the most serious offenders, I set these limits to twice the default.
  36. # Maximum number of arguments for function / method
  37. max-args=10
  38. # Maximum number of locals for function / method body
  39. max-locals=30
  40. # Maximum number of return / yield for function / method body
  41. max-returns=12
  42. # Maximum number of branch for function / method body
  43. max-branches=24
  44. # Maximum number of statements in function / method body
  45. max-statements=100
  46. # Maximum number of attributes for a class (see R0902).
  47. max-attributes=14