Skip to content

Commit

Permalink
Allow multiple yaml def in a file for pre-commit
Browse files Browse the repository at this point in the history
This commit allows multiple yaml definitions to be specified within a
single yaml file in the pre-commit check for yaml syntax. The check
defaults to only one yaml definition per yaml file without this commit.

Signed-off-by: Bryan Cox <brcox@redhat.com>
  • Loading branch information
bryan-cox committed Dec 11, 2024
1 parent d876e9a commit b392ffd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ repos:
stages: [pre-commit]
- id: check-yaml
name: Check yaml syntax
args: [--allow-multiple-documents]
stages: [pre-commit]
- id: trailing-whitespace
name: Trim all whitespace from end of lines
Expand Down

0 comments on commit b392ffd

Please sign in to comment.