From 7f5301523ed46e9fed31b9f09aaece9667187a9f Mon Sep 17 00:00:00 2001 From: Zach Borboa Date: Thu, 30 Apr 2026 09:46:56 -0400 Subject: [PATCH] Use uv for pre-commit autoupdate (#1095) * Use uv pip install in pre-commit auto-update workflow * Set Python version using .python-version file --- .github/workflows/pre-commit-auto-update.yml | 8 ++++++-- .python-version | 1 + 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .python-version diff --git a/.github/workflows/pre-commit-auto-update.yml b/.github/workflows/pre-commit-auto-update.yml index 7aaf44d..5abdd77 100644 --- a/.github/workflows/pre-commit-auto-update.yml +++ b/.github/workflows/pre-commit-auto-update.yml @@ -15,11 +15,15 @@ jobs: ref: 'master' persist-credentials: false + - name: Set up uv + uses: astral-sh/setup-uv@v8 + with: + python-version-file: .python-version + - name: Update dependencies run: | set -x - python -m pip install --upgrade pip - pip install pre-commit packaging + uv pip install --system pre-commit packaging python scripts/pre_commit_stable.py autoupdate --config="tests/.pre-commit-config.yaml" - name: Gather changes diff --git a/.python-version b/.python-version new file mode 100644 index 0000000..24ee5b1 --- /dev/null +++ b/.python-version @@ -0,0 +1 @@ +3.13