-
Notifications
You must be signed in to change notification settings - Fork 201
Increase the Budget for check-yaml hooks #1838
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Hi! I'm trying to replace pre-commit to prek on getsentry/self-hosted, and I came across an issue of:
- hook id: check-yaml
- exit code: 1
docker-compose.yml: Failed to yaml decode (error: line 857 column 1: YAML document too large or too complex: limits breached: AliasAnchorRatio { aliases: 158, anchors: 9 }
--> <input>:856:26
|
855 | sentry-smtp-log:
856 | sentry-clickhouse-log:
| ^ YAML document too large or too complex: limits breached: AliasAnchorRatio { aliases: 158, anchors: 9 })On the source code, this is what the configuration looks like:
prek/crates/prek/src/hooks/pre_commit_hooks/check_yaml.rs
Lines 45 to 48 in 3ba2c1c
| let options = serde_saphyr::Options { | |
| ignore_binary_tag_for_string: true, | |
| ..Default::default() | |
| }; |
Is there any way we can increase the Budget options by default? Or is there any way to configure this from us?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working