.pre-commit-config.yaml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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 - DATALAD
  17. - id: check-yaml
  18. - id: debug-statements
  19. - id: detect-private-key
  20. - id: end-of-file-fixer
  21. - id: fix-byte-order-marker
  22. - id: mixed-line-ending
  23. - id: trailing-whitespace
  24. - repo: local
  25. hooks:
  26. # Prevent committing .rej files
  27. - id: forbidden-files
  28. name: forbidden files
  29. entry: found Copier update rejection files; review them and remove them
  30. language: fail
  31. files: "\\.rej$"
  32. - repo: https://github.com/charliermarsh/ruff-pre-commit
  33. rev: 'v0.1.8'
  34. hooks:
  35. - id: ruff
  36. args: [ --fix, --exit-non-zero-on-fix ]
  37. - id: ruff-format
  38. - repo: https://github.com/python-poetry/poetry
  39. rev: '1.8.3'
  40. hooks:
  41. - id: poetry-check
  42. # - id: poetry-lock
  43. # args: [--no-update]
  44. - repo: https://github.com/python-poetry/poetry-plugin-export
  45. rev: '1.8.0'
  46. hooks:
  47. - id: poetry-export