.pylintrc 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. [MASTER]
  2. init-hook='import sys; sys.path.append("scripts")'
  3. min-similarity-lines=10
  4. [BASIC]
  5. # We're ok with short funtion argument names.
  6. # [invalid-name]
  7. argument-rgx=[a-z_][a-z0-9_]*$
  8. # Allow filter and map.
  9. # [bad-builtin]
  10. bad-functions=input
  11. # We prefer docstrings, but we don't require them on all functions.
  12. # Require them only on long functions (for some value of long).
  13. # [missing-docstring]
  14. docstring-min-length=10
  15. # No upper limit on method names. Pylint <2.1.0 has an upper limit of 30.
  16. # [invalid-name]
  17. method-rgx=[a-z_][a-z0-9_]{2,}$
  18. # Allow module names containing a dash (but no underscore or uppercase letter).
  19. # They are whole programs, not meant to be included by another module.
  20. # [invalid-name]
  21. module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+)|[a-z][-0-9a-z]+)$
  22. # Some functions don't need docstrings.
  23. # [missing-docstring]
  24. no-docstring-rgx=(run_)?main$
  25. # We're ok with short local or global variable names.
  26. # [invalid-name]
  27. variable-rgx=[a-z_][a-z0-9_]*$
  28. [DESIGN]
  29. # Allow more than the default 7 attributes.
  30. # [too-many-instance-attributes]
  31. max-attributes=15
  32. [FORMAT]
  33. # Allow longer modules than the default recommended maximum.
  34. # [too-many-lines]
  35. max-module-lines=2000
  36. [MESSAGES CONTROL]
  37. # * locally-disabled, locally-enabled: If we disable or enable a message
  38. # locally, it's by design. There's no need to clutter the Pylint output
  39. # with this information.
  40. # * logging-format-interpolation: Pylint warns about things like
  41. # ``log.info('...'.format(...))``. It insists on ``log.info('...', ...)``.
  42. # This is of minor utility (mainly a performance gain when there are
  43. # many messages that use formatting and are below the log level).
  44. # Some versions of Pylint (including 1.8, which is the version on
  45. # Ubuntu 18.04) only recognize old-style format strings using '%',
  46. # and complain about something like ``log.info('{}', foo)`` with
  47. # logging-too-many-args (Pylint supports new-style formatting if
  48. # declared globally with logging_format_style under [LOGGING] but
  49. # this requires Pylint >=2.2).
  50. # * no-else-return: Allow the perfectly reasonable idiom
  51. # if condition1:
  52. # return value1
  53. # else:
  54. # return value2
  55. # * unnecessary-pass: If we take the trouble of adding a line with "pass",
  56. # it's because we think the code is clearer that way.
  57. disable=locally-disabled,locally-enabled,logging-format-interpolation,no-else-return,unnecessary-pass
  58. [REPORTS]
  59. # Don't diplay statistics. Just the facts.
  60. reports=no
  61. [VARIABLES]
  62. # Allow unused variables if their name starts with an underscore.
  63. # [unused-argument]
  64. dummy-variables-rgx=_.*
  65. [SIMILARITIES]
  66. # Ignore imports when computing similarities.
  67. ignore-imports=yes