.pre-commit-config.yaml 752 B

123456789101112131415161718192021222324252627
  1. - repo: local
  2. hooks:
  3. - id: yapf
  4. name: yapf
  5. entry: yapf
  6. language: system
  7. args: [-i, --style .style.yapf]
  8. files: \.py$
  9. - repo: https://github.com/pre-commit/pre-commit-hooks
  10. sha: a11d9314b22d8f8c7556443875b731ef05965464
  11. hooks:
  12. - id: check-merge-conflict
  13. - id: check-symlinks
  14. - id: end-of-file-fixer
  15. - id: trailing-whitespace
  16. - id: detect-private-key
  17. - id: check-symlinks
  18. - id: check-added-large-files
  19. - repo: local
  20. hooks:
  21. - id: copyright_checker
  22. name: copyright_checker
  23. entry: python ./.copyright.hook
  24. language: system
  25. files: \.(c|cc|cxx|cpp|cu|h|hpp|hxx|proto|py)$
  26. exclude: (?!.*third_party)^.*$