Skip to content

Commit

Permalink
Enforce yamllint in CI (#2381)
Browse files Browse the repository at this point in the history
Start running and enforcing yamllint checks in CI.
  • Loading branch information
mjwolf committed Sep 24, 2024
1 parent 220ecee commit e78c424
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ jobs:
with:
python-version: '3.x'
- run: git fetch --prune --unshallow --tags
- run: make check
- run: make check yamllint
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ misspell:
fi
./build/misspell/bin/misspell -error README.md CONTRIBUTING.md schemas/* docs/* experimental/schemas/*

# Warn re misspell removal
# Warn re misspell removal
.PHONY: misspell_warn
misspell_warn:
@echo "Warning: due to lack of cross-platform support, misspell is no longer included in this task and may be deprecated in future\n"
Expand All @@ -110,4 +110,4 @@ build/ve/bin/activate: scripts/requirements.txt scripts/requirements-dev.txt
# Check YAML syntax (currently not enforced).
.PHONY: yamllint
yamllint: ve
build/ve/bin/yamllint schemas/*.yml
build/ve/bin/yamllint -d '{extends: default, rules: {line-length: disable}}' schemas/*.yml
4 changes: 2 additions & 2 deletions schemas/email.yml
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@
A brief summary of the topic of the message.
example: "Please see this important message."
multi_fields:
- type: match_only_text
name: text
- type: match_only_text
name: text

- name: to.address
level: extended
Expand Down
1 change: 0 additions & 1 deletion schemas/pe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -208,4 +208,3 @@
format: string
type: long
level: extended

0 comments on commit e78c424

Please sign in to comment.