Skip to content

Commit

Permalink
update linting action to use uv
Browse files Browse the repository at this point in the history
  • Loading branch information
ADBond committed Sep 12, 2024
1 parent 16ebe55 commit 93530bb
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,21 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Install poetry using pipx
run: pipx install poetry && pipx ensurepath

- uses: actions/setup-python@v5
- name: Setup uv
id: setup-uv
uses: astral-sh/setup-uv@v2
with:
python-version: "3.11.10"
cache: "poetry"
enable-cache: true
cache-dependency-glob: "uv.lock"

- name: Install Python 3.11.10
run: uv python install 3.11.10

- name: Install dependencies
run: |
poetry config virtualenvs.in-project true
poetry install --no-interaction --no-root
run: uv sync -p 3.11.10

- name: Run Ruff linting
run: poetry run ruff check . --output-format=full
run: uv run python -m ruff check . --output-format=full

- name: Run Ruff formatting check
run: poetry run ruff format --check .
run: uv run python -m ruff format --check .

0 comments on commit 93530bb

Please sign in to comment.