Skip to content

Commit

Permalink
ci: try fixing lint.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dangotbanned committed Dec 20, 2024
1 parent d5ffc7d commit 2c70b9f
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 2c70b9f

Please sign in to comment.