From b4d2a1c195d0624201cdd9abd3ce87ba78429499 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9lder=20Greg=C3=B3rio?= Date: Thu, 22 Oct 2026 21:58:02 +0100 Subject: [PATCH] MINOR: [CI] Pin pre-commit to Python 3.12 On a fresh cache, setup-python's floating 3.x selection currently resolves to Python 3.15. The pinned cmake-format v0.6.13 hook then crashes with ValueError: Cannot use capturing groups in re.Scanner before it can format the CMake files. Select Python 3.12 so pre-commit uses a compatible interpreter consistently. Observed in the [Dev push run for the shallow-checkout PR](https://github.com/xborder/arrow- java/actions/runs/39852854073/job/120083323070): the Release Audit Tool and the other hooks passed; cmake-format failed while constructing its regular-expression scanner. --- .github/workflows/dev.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index f4dc9ad6f1..867e8920e8 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -42,7 +42,7 @@ jobs: - uses: actions/setup-python@v7 with: - python-version: '3.x' + python-version: '3.12' - name: pre-commit (cache) uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: