diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 00000000000..2cb72cf9e17 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,14 @@ +repos: + - repo: local + hooks: + - id: meta-lint-ci + name: Running Meta/lint-ci.sh to ensure changes will pass linting on CI + entry: bash Meta/lint-ci.sh + stages: [ commit ] + language: system + + - id: meta-lint-commit + name: Lint commit message to ensure it will pass the commit linting on CI + entry: Meta/lint-commit.sh + stages: [ commit-msg ] + language: system