From fd5d4c6d8f0aa7390645be267f872ac9df08a4b9 Mon Sep 17 00:00:00 2001 From: vitaliibrodetskyi-prog Date: Mon, 23 Nov 2026 17:14:14 +0200 Subject: [PATCH] Fix: pin Python version for pre-commit job setup-python with python-version '3.x' now resolves to Python 3.15, which rejects capturing groups in re.Scanner. cmake-format (cmakelang 0.6.13) uses them in its lexer and crashes on every CMakeLists.txt. Pin Python 3.12, as test.yml already does. Co-Authored-By: Claude Sonnet 5.5 --- .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 2111f47254..8297fca1bd 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -40,7 +40,7 @@ jobs: - uses: actions/setup-python@v6 with: - python-version: '3.x' + python-version: '3.12' - name: pre-commit (cache) uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1 with: