https://github.com/python/cpython/commit/5d64571b43bc75b2971af6aa046dfba64fb43ef8
commit: 5d64571b43bc75b2971af6aa046dfba64fb43ef8
branch: 3.13
author: 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) 
<[email protected]>
committer: encukou <[email protected]>
date: 2025-08-12T13:42:55+02:00
summary:

[3.13] Update pre-commit hooks (GH-137591) (GH-137641)

(cherry picked from commit b36d23f58e8ab85b8576ab59c2ce72572c2cb12a)

Co-authored-by: Malcolm Smith <[email protected]>
Co-authored-by: Adam Turner <[email protected]>

files:
M .github/workflows/build.yml
M .pre-commit-config.yaml
M Lib/test/.ruff.toml

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index e3b8014da0d80f..ba19ff54ca5913 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -231,8 +231,8 @@ jobs:
       free-threading: ${{ matrix.free-threading }}
 
   build-windows-msi:
-    name: >-  # ${{ '' } is a hack to nest jobs under the same sidebar category
-      Windows MSI${{ '' }}
+    # ${{ '' } is a hack to nest jobs under the same sidebar category.
+    name: Windows MSI${{ '' }}  # zizmor: ignore[obfuscation]
     needs: build-context
     if: fromJSON(needs.build-context.outputs.run-windows-msi)
     strategy:
@@ -546,8 +546,8 @@ jobs:
       run: xvfb-run make test
 
   build-san:
-    name: >-  # ${{ '' } is a hack to nest jobs under the same sidebar category
-      Sanitizers${{ '' }}
+    # ${{ '' } is a hack to nest jobs under the same sidebar category.
+    name: Sanitizers${{ '' }}  # zizmor: ignore[obfuscation]
     needs: build-context
     if: needs.build-context.outputs.run-tests == 'true'
     strategy:
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index c445ef627a20c4..cdf458fa6b686c 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -1,6 +1,6 @@
 repos:
   - repo: https://github.com/astral-sh/ruff-pre-commit
-    rev: v0.11.6
+    rev: v0.12.8
     hooks:
       - id: ruff
         name: Run Ruff (lint) on Doc/
@@ -34,7 +34,7 @@ repos:
         exclude: ^Tools/c-analyzer/cpython/_parser.py
 
   - repo: https://github.com/pre-commit/pre-commit-hooks
-    rev: v5.0.0
+    rev: v6.0.0
     hooks:
       - id: check-case-conflict
       - id: check-merge-conflict
@@ -52,7 +52,7 @@ repos:
         files: '^\.github/CODEOWNERS|\.(gram)$'
 
   - repo: https://github.com/woodruffw/zizmor-pre-commit
-    rev: v1.6.0
+    rev: v1.11.0
     hooks:
       - id: zizmor
 
diff --git a/Lib/test/.ruff.toml b/Lib/test/.ruff.toml
index fa8b2b42579b4a..218eefe5255706 100644
--- a/Lib/test/.ruff.toml
+++ b/Lib/test/.ruff.toml
@@ -1,4 +1,5 @@
 fix = true
+target-version = "py312"
 extend-exclude = [
     # Excluded (run with the other AC files in its own separate ruff job in 
pre-commit)
     "test_clinic.py",
@@ -12,6 +13,15 @@ extend-exclude = [
     "test_grammar.py",
 ]
 
+[per-file-target-version]
+# Type parameter defaults
+"test_type_params.py" = "py313"
+
+# Template string literals
+"test_annotationlib.py" = "py314"
+"test_string/test_templatelib.py" = "py314"
+"test_tstring.py" = "py314"
+
 [lint]
 select = [
     "F811",  # Redefinition of unused variable (useful for finding test 
methods with the same name)

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to