mirror of
https://github.com/catppuccin/python.git
synced 2026-02-19 16:15:05 +08:00
30 lines
703 B
YAML
30 lines
703 B
YAML
on:
|
|
push:
|
|
paths:
|
|
- "**.py"
|
|
|
|
name: lint
|
|
|
|
jobs:
|
|
lint:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-python@v6
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
- uses: astral-sh/setup-uv@v5
|
|
with:
|
|
version: "0.6.3"
|
|
python-version: ${{ matrix.python-version }}
|
|
enable-cache: true
|
|
cache-dependency-glob: "uv.lock"
|
|
- run: uv sync --all-extras
|
|
- run: uv run ruff check
|
|
- run: uv run ruff format --check --diff
|
|
- run: uv run mypy .
|