From 6ce99e3148de8746511fc51a5d5e068eba2ca172 Mon Sep 17 00:00:00 2001 From: Rohit Goswami Date: Sat, 17 Aug 2024 16:37:15 -0500 Subject: [PATCH] MAINT: Add a configuration for meson format --- .pre-commit-config.yaml | 17 +++++++++++++++++ 1 file changed, 17 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 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"]