.pre-commit-config.yaml 631 B

1234567891011121314151617181920212223
  1. repos:
  2. - repo: https://github.com/pre-commit/pre-commit-hooks
  3. rev: v4.4.0
  4. hooks:
  5. - id: check-yaml
  6. - id: check-xml
  7. - id: end-of-file-fixer
  8. - id: trailing-whitespace
  9. - id: check-merge-conflict
  10. - id: mixed-line-ending
  11. - repo: https://github.com/pre-commit/mirrors-clang-format
  12. rev: v20.1.8
  13. hooks:
  14. - id: clang-format
  15. args:
  16. - --style=file:.clang-format
  17. - repo: https://github.com/cheshirekow/cmake-format-precommit
  18. rev: v0.6.13
  19. hooks:
  20. - id: cmake-format
  21. args:
  22. - --in-place
  23. - --config-files=cmake/cmake-format.py