aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2024-08-31 13:15:39 +0100
committerGravatar Joe Banks <[email protected]>2024-08-31 13:15:39 +0100
commit13bf8557f85e7d143864c1b30250fa00c69d5834 (patch)
tree36e3f2c85f49c2ff4eaaf25018b04282b105c032
parentAdd DMARC exporter to Prometheus scrape targets (diff)
Use --unsafe in check-yaml pre-commit filter
This performs a syntax check instead of attempting a load to prevent unresolvable tags (i.e. Ansible's `!vault`) from kicking up errors.
-rw-r--r--.pre-commit-config.yaml2
1 files changed, 1 insertions, 1 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index c5954a1..f24cade 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -6,7 +6,7 @@ repos:
- id: check-merge-conflict
- id: check-toml
- id: check-yaml
- args: [--allow-multiple-documents]
+ args: [--allow-multiple-documents, --unsafe]
exclude: ^docs/mkdocs.yml
- id: end-of-file-fixer
- id: trailing-whitespace