Skip to content

Replace black/isort/flake8 with ruff, migrate to uv/pyproject.toml #1857

Replace black/isort/flake8 with ruff, migrate to uv/pyproject.toml

Replace black/isort/flake8 with ruff, migrate to uv/pyproject.toml #1857

Workflow file for this run

name: CI
on:
push:
branches:
- main
- dev
pull_request:
env:
DEFAULT_PYTHON: 3.13
jobs:
pre-commit:
runs-on: "ubuntu-latest"
name: Pre-commit
steps:
- name: Check out the repository
uses: actions/checkout@v6
- name: Set up Python ${{ env.DEFAULT_PYTHON }}
uses: actions/setup-python@v6.2.0
with:
python-version: ${{ env.DEFAULT_PYTHON }}
- name: Install uv
uses: astral-sh/setup-uv@v8.1.0
- name: Install dependencies
run: uv sync --group dev
- name: Run pre-commit on all files
env:
SKIP: no-commit-to-branch
run: uv run pre-commit run --all-files --show-diff-on-failure --color=always
tests:
runs-on: "ubuntu-latest"
name: Tests
steps:
- name: Check out the repository
uses: actions/checkout@v6
- name: Set up Python ${{ env.DEFAULT_PYTHON }}
uses: actions/setup-python@v6.2.0
with:
python-version: ${{ env.DEFAULT_PYTHON }}
- name: Install uv
uses: astral-sh/setup-uv@v8.1.0
- name: Install dependencies
run: uv sync --group test
- name: Run tests
run: uv run pytest -v