.pre-commit-config.yaml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # See https://pre-commit.com for more information
  2. ci:
  3. autofix_prs: false
  4. autoupdate_schedule: quarterly
  5. autoupdate_branch: pre-commit-autoupdate
  6. # See https://pre-commit.com/hooks.html for more hooks
  7. repos:
  8. - repo: https://github.com/pre-commit/pre-commit-hooks
  9. rev: 'v4.5.0'
  10. hooks:
  11. - id: check-added-large-files
  12. - id: check-ast
  13. - id: check-case-conflict
  14. - id: check-json
  15. - id: check-merge-conflict
  16. #- id: check-symlinks
  17. - id: check-yaml
  18. - id: debug-statements
  19. - id: detect-private-key
  20. - id: end-of-file-fixer
  21. exclude: ".json|.yaml|.xml"
  22. - id: fix-byte-order-marker
  23. - id: mixed-line-ending
  24. - id: trailing-whitespace
  25. exclude: ".json|.yaml|.xml"
  26. - repo: local
  27. hooks:
  28. # Prevent committing .rej files
  29. - id: forbidden-files
  30. name: forbidden files
  31. entry: found Copier update rejection files; review them and remove them
  32. language: fail
  33. files: "\\.rej$"
  34. - repo: https://github.com/charliermarsh/ruff-pre-commit
  35. rev: 'v0.1.8'
  36. hooks:
  37. - id: ruff
  38. args: [ --fix, --exit-non-zero-on-fix ]
  39. - id: ruff-format
  40. - repo: https://github.com/python-poetry/poetry
  41. rev: '1.7.0'
  42. hooks:
  43. - id: poetry-check