Browse Source

MAINT: Add a configuration for meson format

pull/4885/head
Rohit Goswami 1 year ago
parent
commit
6ce99e3148
No known key found for this signature in database GPG Key ID: 9CCCE36402CB49A6
1 changed files with 17 additions and 0 deletions
  1. +17
    -0
      .pre-commit-config.yaml

+ 17
- 0
.pre-commit-config.yaml 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"]

Loading…
Cancel
Save