30 lines
840B

  1. repos:
  2. - repo: https://github.com/pre-commit/pre-commit-hooks
  3. rev: v4.4.0
  4. hooks:
  5. - id: fix-byte-order-marker
  6. - id: check-case-conflict
  7. - id: check-merge-conflict
  8. - id: debug-statements
  9. - id: pretty-format-json
  10. types: [text]
  11. files: \.json(.template)?$
  12. args: [ --autofix , --no-ensure-ascii, --indent=2, --no-sort-keys]
  13. - id: trailing-whitespace
  14. exclude: '(\/|^)lib\/'
  15. args: [ --markdown-linebreak-ext=md ]
  16. - repo: https://github.com/PyCQA/isort
  17. rev: 5.12.0
  18. hooks:
  19. - id: isort
  20. exclude: '(\/|^)lib\/'
  21. - repo: https://github.com/psf/black
  22. rev: 23.3.0
  23. hooks:
  24. - id: black
  25. exclude: '(\/|^)lib\/'
  26. - repo: https://github.com/PyCQA/flake8
  27. rev: 6.0.0
  28. hooks:
  29. - id: flake8
  30. exclude: '(\/|^)lib\/'