.pre-commit-config.yaml 659 B

1234567891011121314151617181920212223
  1. repos:
  2. - repo: https://github.com/pre-commit/pre-commit-hooks
  3. rev: v4.1.0
  4. hooks:
  5. - id: trailing-whitespace
  6. exclude_types: [markdown]
  7. - id: end-of-file-fixer
  8. - id: check-yaml
  9. - id: check-added-large-files
  10. # TODO convert to use the upstream psf/black when
  11. # https://github.com/psf/black/issues/2493 gets fixed
  12. - repo: local
  13. hooks:
  14. - id: black
  15. name: black
  16. entry: black --check
  17. language: system
  18. files: ^(mausignald|mautrix_signal)/.*\.py$
  19. - repo: https://github.com/PyCQA/isort
  20. rev: 5.10.1
  21. hooks:
  22. - id: isort
  23. files: ^(mausignald|mautrix_signal)/.*$