Skip to content

ci: Use uv in lint.yml action #521

ci: Use uv in lint.yml action

ci: Use uv in lint.yml action #521

Workflow file for this run

name: lint
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
name: ruff-mypy
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v2
- name: "Set up Python"
uses: actions/setup-python@v5
with:
python-version-file: "pyproject.toml"
# Installing all dependencies and not just the linters as mypy needs them for type checking
- name: Install dependencies
run: uv sync --all-extras --dev
- name: Lint with ruff
run: |
uvx ruff check .
- name: Check formatting with ruff
run: |
uvx ruff format --diff .
uvx ruff format --check .
- name: Lint with mypy
run: |
mypy altair tests