ci: add sort_yaml.py

This commit is contained in:
Fu Hanxi
2024-01-23 11:28:06 +01:00
parent 946fdfce62
commit d42e3fce04
5 changed files with 108 additions and 44 deletions
+11 -5
View File
@@ -157,13 +157,19 @@ repos:
additional_dependencies:
- PyYAML == 5.3.1
- idf-build-apps~=2.0
- id: sort-build-test-rules-ymls
name: sort .build-test-rules.yml files
entry: tools/ci/check_build_test_rules.py sort-yaml
- id: sort-yaml-files
name: sort yaml files
entry: tools/ci/sort_yaml.py
language: python
files: '\.build-test-rules\.yml'
files: '\.build-test-rules\.yml$'
additional_dependencies:
- ruamel.yaml
- id: sort-yaml-test
name: sort yaml test
entry: python -m unittest tools/ci/sort_yaml.py
language: python
files: 'tools/ci/sort_yaml\.py$'
additional_dependencies:
- PyYAML == 5.3.1
- ruamel.yaml
- id: check-build-test-rules-path-exists
name: check path in .build-test-rules.yml exists