ci: replace sync_website.sh
with .py
#4258
This file contains 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@v5 | |
with: | |
python-version: "3.12" | |
- 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 pip install -e ".[dev, all]" --system | |
- name: Lint with ruff | |
run: | | |
uv run ruff check | |
- name: Check formatting with ruff | |
run: | | |
uv run ruff format --check --diff | |
- name: Lint with mypy | |
run: | | |
uv run mypy altair tests |