github.com/facebookincubator/ttpforge@v1.0.13-0.20240405153150-5ae801628835/.pre-commit-config.yaml (about) 1 --- 2 repos: 3 - repo: https://github.com/pre-commit/pre-commit-hooks 4 rev: v4.5.0 5 hooks: 6 - id: check-case-conflict 7 - id: check-merge-conflict 8 - id: check-symlinks 9 - id: end-of-file-fixer 10 - id: trailing-whitespace 11 - id: check-added-large-files 12 - id: detect-private-key 13 - id: check-shebang-scripts-are-executable 14 15 - repo: https://github.com/codespell-project/codespell 16 rev: v2.2.6 17 hooks: 18 - id: codespell 19 entry: | 20 codespell -q 3 -f 21 -S ".git,go.*" 22 23 - repo: local 24 hooks: 25 - id: go-no-replacement 26 name: Avoid committing a go module replacement 27 entry: .hooks/go-no-replacement.sh 28 language: script 29 files: go.mod 30 31 - id: go-copyright 32 name: Ensure all go files have the copyright header 33 language: script 34 entry: .hooks/go-copyright.sh 35 files: '\.go$'