Skip to content

Commit

Permalink
Add python linting job
Browse files Browse the repository at this point in the history
  • Loading branch information
minottic committed Jul 24, 2024
1 parent cc2e743 commit 9be7546
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/changed_files.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ sh:
- '**.sh'
json:
- '**.json'
python:
- '**.py'
src: &src
- '!**/*.md'
- '!**/mkdocs/*'
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/compose_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,22 @@ jobs:
run: npm install eslint @eslint/js --save-dev
- name: Lint javascript files
run: npx eslint --config .github/eslint.config.mjs
python-lint:
runs-on: ubuntu-latest
needs:
- changes
if: fromJson(needs.changes.outputs.all).python_all_modified_files
steps:
- uses: actions/checkout@v4
- uses: chartboost/ruff-action@v1
with:
args: check --select ALL
check-mkdocs:
runs-on: ubuntu-latest
needs:
- changes
- yaml-lint
- python-lint
if: >
!failure()
&& !cancelled()
Expand Down Expand Up @@ -106,6 +117,7 @@ jobs:
- json-lint
- shell-lint
- javascript-lint
- python-lint
- check-mkdocs
if: >
! failure()
Expand Down

0 comments on commit 9be7546

Please sign in to comment.