From 93530bb9844b8e6b91e0dea1272c84d06fbbb9a9 Mon Sep 17 00:00:00 2001 From: ADBond <48208438+ADBond@users.noreply.github.com> Date: Thu, 12 Sep 2024 20:11:23 +0100 Subject: [PATCH] update linting action to use uv --- .github/workflows/lint.yaml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index a645fce..27c7b99 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -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 .