Skip to content
This repository was archived by the owner on Nov 23, 2025. It is now read-only.

Commit ea15848

Browse files
committed
Adding yamllint hook to catch common yaml syntax errors.
1 parent 1d42399 commit ea15848

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@ repos:
1919
- id: check-executables-have-shebangs
2020
- id: check-shebang-scripts-are-executable
2121

22+
# Check for common yaml errors
23+
- repo: https://github.com/adrienverge/yamllint.git
24+
rev: v1.33.0
25+
hooks:
26+
- id: yamllint
27+
args: [--no-warnings, -d, "{extends: relaxed, rules: {new-lines: disable}}"]
28+
2229
# Format markdown docs.
2330
- repo: https://github.com/executablebooks/mdformat
2431
# Do this before other tools "fixing" the line endings

0 commit comments

Comments
 (0)