* Ruff and Pyright OK * lint * uv * add uv to readme * Replace pyright with TY * Lint is ok
36 lines
660 B
YAML
36 lines
660 B
YAML
name: Linters
|
|
|
|
on: [push, pull_request]
|
|
|
|
permissions:
|
|
checks: write
|
|
contents: write
|
|
|
|
jobs:
|
|
run-linters:
|
|
name: Run linters
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Check out Git repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: 3.12
|
|
|
|
- name: Set up uv
|
|
uses: astral-sh/setup-uv@v6
|
|
|
|
- name: Sync Python dependencies
|
|
run: uv sync --extra dev
|
|
|
|
- name: Run Ruff
|
|
run: |
|
|
uv run ruff check .
|
|
uv run ruff format . --check
|
|
|
|
- name: Run ty
|
|
run: uv run ty check aperisolve
|