From 37c5e88d020964d1cbc805c817a600fd7d3f50f5 Mon Sep 17 00:00:00 2001 From: Greyson LaLonde Date: Mon, 8 Sep 2025 11:30:28 -0400 Subject: [PATCH] ci: configure pre-commit hooks and github actions to use uv run (#3479) --- .github/workflows/type-checker.yml | 2 +- .pre-commit-config.yaml | 22 +++++++++++++--------- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/.github/workflows/type-checker.yml b/.github/workflows/type-checker.yml index 725a598b3..a403aa340 100644 --- a/.github/workflows/type-checker.yml +++ b/.github/workflows/type-checker.yml @@ -32,7 +32,7 @@ jobs: run: uv python install ${{ matrix.python-version }} - name: Install dependencies - run: uv sync --dev --no-install-project + run: uv sync --dev --all-extras --no-install-project - name: Get changed Python files id: changed-files diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 76441433b..0614f1457 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,14 +1,18 @@ repos: - - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.12.11 + - repo: local hooks: - id: ruff - args: ["--config", "pyproject.toml"] + name: ruff + entry: uv run ruff check + language: system + types: [python] - id: ruff-format - args: ["--config", "pyproject.toml"] - - - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.17.1 - hooks: + name: ruff-format + entry: uv run ruff format + language: system + types: [python] - id: mypy - args: ["--config-file", "pyproject.toml"] + name: mypy + entry: uv run mypy + language: system + types: [python]