You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.4 KiB

  1. repos:
  2. - repo: git://github.com/pre-commit/pre-commit-hooks
  3. rev: v2.4.0
  4. hooks:
  5. - id: flake8
  6. args:
  7. - --max-line-length=99
  8. - id: check-ast
  9. - id: check-case-conflict
  10. - id: debug-statements
  11. - id: double-quote-string-fixer
  12. - id: end-of-file-fixer
  13. - repo: https://github.com/pre-commit/mirrors-autopep8
  14. rev: v1.4.4
  15. hooks:
  16. - id: autopep8
  17. args:
  18. - --in-place
  19. - --max-line-length=99
  20. # We run pylint from local env, to ensure modules can be found
  21. - repo: local
  22. hooks:
  23. - id: pylint
  24. name: pylint
  25. entry: env PYTHONPATH=app python3 -m pylint.__main__
  26. language: system
  27. types: [python]
  28. args:
  29. - --disable=broad-except
  30. - --disable=duplicate-code
  31. - --disable=invalid-name
  32. - --disable=missing-docstring
  33. - --disable=no-self-use
  34. - --disable=possibly-unused-variable
  35. - --disable=protected-access
  36. - --disable=too-few-public-methods
  37. - --disable=too-many-arguments
  38. - --disable=too-many-branches
  39. - --disable=too-many-lines
  40. - --disable=too-many-locals
  41. - --disable=too-many-public-methods
  42. - --disable=too-many-statements
  43. - --disable=try-except-raise
  44. - --include-naming-hint=yes
  45. - --max-args=10
  46. - --max-line-length=99
  47. - --max-locals=25
  48. - --max-returns=10