From 2c70b9ffc961d2ac436f95ecad863ef6d55373f7 Mon Sep 17 00:00:00 2001 From: dangotbanned <125183946+dangotbanned@users.noreply.github.com> Date: Fri, 20 Dec 2024 20:07:46 +0000 Subject: [PATCH] ci: try fixing `lint.yml` --- .github/workflows/lint.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 2b7d4996b..6bb646c14 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -7,23 +7,22 @@ jobs: runs-on: ubuntu-latest name: ruff-mypy steps: - - uses: actions/checkout@v4 - - name: Install uv - uses: astral-sh/setup-uv@v3 - name: "Set up Python" uses: actions/setup-python@v5 with: python-version-file: "pyproject.toml" + - uses: actions/checkout@v4 + - name: Install uv + uses: astral-sh/setup-uv@v4 # Installing all dependencies and not just the linters as mypy needs them for type checking - name: Install dependencies - run: uv sync --extra all --extra dev + run: uv pip install -e ".[dev, all]" --system - name: Lint with ruff run: | - uvx ruff check . + uv run ruff check - name: Check formatting with ruff run: | - uvx ruff format --diff . - uvx ruff format --check . + uv run ruff format --check --diff - name: Lint with mypy run: | uv run mypy altair tests