Skip to content

Commit

Permalink
Add yamllint on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
francesco-ballarin committed Nov 26, 2023
1 parent 2655a16 commit 227c350
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ jobs:
python3 -m pip install --check-build-dependencies --no-build-isolation --config-settings=build-dir="build" --config-settings=cmake.build-type="Debug" --verbose .[docs,lint,tests,tutorials]
fi
shell: bash
- name: Clean build files
run: |
git config --global --add safe.directory $PWD
git clean -xdf
- name: Update mypy configuration
if: startsWith(matrix.backend, 'none') == true
run: |
Expand All @@ -101,6 +105,9 @@ jobs:
- name: Run mypy on python files
run: |
python3 -m mypy .
- name: Run yamllint on workflows
run: |
python3 -m yamllint -d "{extends: default, rules: {document-start: {present: false}, line-length: disable, truthy: {check-keys: false}}}" .
- name: Run documentation generation
if: startsWith(matrix.backend, 'none') != true
run: |
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ lint = [
"flake8-isort",
"Flake8-pyproject",
"flake8-quotes",
"mypy"
"mypy",
"yamllint"
]
tests = [
"coverage[toml]",
Expand Down

0 comments on commit 227c350

Please sign in to comment.