Skip to content

Commit

Permalink
ci(uv): Switch lint.yml to uv sync
Browse files Browse the repository at this point in the history
  • Loading branch information
dangotbanned committed Jan 9, 2025
1 parent 872d337 commit 20f2894
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,20 @@ jobs:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
cache-dependency-glob: |
**/uv.lock
**/pyproject.toml
# Installing all dependencies and not just the linters as mypy needs them for type checking
- name: Install dependencies
run: uv pip install -e ".[dev, all]" --system
- name: Lint with ruff
run: uv sync --all-extras
- name: ruff check (lint)
run: |
uv run ruff check
- name: Check formatting with ruff
- name: ruff format
run: |
uv run ruff format --check --diff
- name: Lint with mypy
- name: mypy (type check)
run: |
uv run mypy altair tests

0 comments on commit 20f2894

Please sign in to comment.