Skip to content

Commit

Permalink
ci: simplify lint action
Browse files Browse the repository at this point in the history
123456789012345678901234567890123456789012345678901234567890123456789012
Lint action will bypass poetry install and always install latest version
of ruff. If the action fails, a message is echoed reminding users to
install the latest version of ruff.
Also, poetry was updated to the newest current version of ruff.
  • Loading branch information
DaniBodor committed Jun 18, 2024
1 parent de05e43 commit bb9dcd9
Show file tree
Hide file tree
Showing 3 changed files with 1,942 additions and 1,943 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,8 @@ jobs:
run: |
which python3
python3 --version
- name: Upgrade pip and install dependencies
run: |
python3 -m pip install --upgrade pip poetry
poetry install --with test
- name: Check linting and formatting using ruff
run: |
poetry run ruff check
poetry run ruff format --check
python3 -m pip install ruff
ruff check || echo "ruff check failed - ensure you have the latest version of ruff (`ruff -V`) installed locally."
ruff format --check || echo "ruff format failed - ensure you have the latest version of ruff (`ruff -V`) installed locally."
Loading

0 comments on commit bb9dcd9

Please sign in to comment.