/ .pre-commit-config.yaml
.pre-commit-config.yaml
1 repos: 2 - repo: https://github.com/pre-commit/pre-commit-hooks 3 rev: v4.0.1 4 hooks: 5 - id: trailing-whitespace 6 - id: end-of-file-fixer 7 - id: mixed-line-ending 8 - id: check-json 9 - id: check-yaml 10 - id: check-xml 11 - id: check-case-conflict 12 - id: check-executables-have-shebangs 13 - id: check-merge-conflict 14 - id: check-symlinks 15 16 - repo: meta 17 hooks: 18 - id: check-useless-excludes 19 20 - repo: local 21 hooks: 22 - id: format-python 23 name: format-python 24 entry: scripts/lint.sh 25 language: script 26 types: [python] 27 args: ['format'] 28 - id: lint-python 29 name: lint-python 30 entry: scripts/lint.sh 31 language: script 32 types: [python] 33 args: ['check_types'] 34 35 exclude: ^test/external/.*$|\.svg$