ci: Test with minimum Narwhals version, bump minimum typing-extension… #4884
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: lint | |
| on: [push, pull_request] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| name: ruff-mypy | |
| steps: | |
| - name: "Set up Python" | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.12" | |
| - uses: actions/checkout@v5 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| 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 sync --all-extras | |
| - name: ruff check (lint) | |
| run: | | |
| uv run ruff check | |
| - name: ruff format | |
| run: | | |
| uv run ruff format --check --diff | |
| - name: mypy (type check) | |
| run: | | |
| uv run mypy altair tests |