.pylintrc 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. [BASIC]
  2. # We're ok with short funtion argument names.
  3. # [invalid-name]
  4. argument-rgx=[a-z_][a-z0-9_]*$
  5. # Allow filter and map.
  6. # [bad-builtin]
  7. bad-functions=input
  8. # We prefer docstrings, but we don't require them on all functions.
  9. # Require them only on long functions (for some value of long).
  10. # [missing-docstring]
  11. docstring-min-length=10
  12. # Allow longer methods than the default.
  13. # [invalid-name]
  14. method-rgx=[a-z_][a-z0-9_]{2,35}$
  15. # Allow module names containing a dash (but no underscore or uppercase letter).
  16. # They are whole programs, not meant to be included by another module.
  17. # [invalid-name]
  18. module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+)|[a-z][-0-9a-z]+)$
  19. # Some functions don't need docstrings.
  20. # [missing-docstring]
  21. no-docstring-rgx=(run_)main$
  22. # We're ok with short local or global variable names.
  23. # [invalid-name]
  24. variable-rgx=[a-z_][a-z0-9_]*$
  25. [DESIGN]
  26. # Allow more than the default 7 attributes.
  27. # [too-many-instance-attributes]
  28. max-attributes=15
  29. [FORMAT]
  30. # Allow longer modules than the default recommended maximum.
  31. # [too-many-lines]
  32. max-module-lines=2000
  33. [MESSAGES CONTROL]
  34. disable=
  35. [REPORTS]
  36. # Don't diplay statistics. Just the facts.
  37. reports=no
  38. [VARIABLES]
  39. # Allow unused variables if their name starts with an underscore.
  40. # [unused-argument]
  41. dummy-variables-rgx=_.*