MAINT: Add a configuration for meson format

This commit is contained in:
Rohit Goswami 2024-08-17 16:37:15 -05:00
parent 3f9ffecf86
commit 6ce99e3148
No known key found for this signature in database
GPG Key ID: 9CCCE36402CB49A6
1 changed files with 17 additions and 0 deletions

17
.pre-commit-config.yaml Normal file
View File

@ -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"]