From 0ea9f5dbb821833f3320b0fd4837e45851c44973 Mon Sep 17 00:00:00 2001 From: faxe1008 Date: Sun, 16 Oct 2022 20:02:20 +0200 Subject: [PATCH] Meta: Add .pre-commit-config.yaml This patch adds a basic pre-commit configuration. --- .pre-commit-config.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .pre-commit-config.yaml 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