diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 000000000..3f524fed6 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,17 @@ +# See https://pre-commit.com for more information +# See https://pre-commit.com/hooks.html for more hooks +fail_fast: false +exclude: | + (?x)( + benchmark # vendored + ) +repos: +- repo: local + hooks: + - id: meson-format + name: meson format + entry: meson + language: system + types: [meson] + files: \.build$ + args: ["format", "-i"]