https://github.com/python/cpython/commit/c5852c27c112a2669b2984260efd81ff12f7ad64
commit: c5852c27c112a2669b2984260efd81ff12f7ad64
branch: 3.13
author: Hugo van Kemenade <[email protected]>
committer: hugovk <[email protected]>
date: 2025-12-23T21:28:00+02:00
summary:
[3.13] Update pre-commit with zizmor and Ruff fixes (GH-143095) (GH-143102)
(#143113)
files:
M .github/dependabot.yml
M .pre-commit-config.yaml
M Doc/tools/check-warnings.py
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
index c8a3165d690364..7f3376f8ddb1e2 100644
--- a/.github/dependabot.yml
+++ b/.github/dependabot.yml
@@ -12,6 +12,11 @@ updates:
update-types:
- "version-update:semver-minor"
- "version-update:semver-patch"
+ cooldown:
+ #
https://blog.yossarian.net/2025/11/21/We-should-all-be-using-dependency-cooldowns
+ # Cooldowns protect against supply chain attacks by avoiding the
+ # highest-risk window immediately after new releases.
+ default-days: 14
- package-ecosystem: "pip"
directory: "/Tools/"
schedule:
@@ -19,3 +24,5 @@ updates:
labels:
- "skip issue"
- "skip news"
+ cooldown:
+ default-days: 14
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index bd23ae5d1fbd93..33c0ab8645f13c 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.13.2
+ rev: v0.14.10
hooks:
- id: ruff-check
name: Run Ruff (lint) on Doc/
@@ -36,7 +36,7 @@ repos:
files: ^Tools/wasm/
- repo: https://github.com/psf/black-pre-commit-mirror
- rev: 25.9.0
+ rev: 25.12.0
hooks:
- id: black
name: Run Black on Tools/jit/
@@ -68,24 +68,24 @@ repos:
files: '^\.github/CODEOWNERS|\.(gram)$'
- repo: https://github.com/python-jsonschema/check-jsonschema
- rev: 0.34.0
+ rev: 0.36.0
hooks:
- id: check-dependabot
- id: check-github-workflows
- id: check-readthedocs
- repo: https://github.com/rhysd/actionlint
- rev: v1.7.7
+ rev: v1.7.9
hooks:
- id: actionlint
- repo: https://github.com/woodruffw/zizmor-pre-commit
- rev: v1.14.1
+ rev: v1.19.0
hooks:
- id: zizmor
- repo: https://github.com/sphinx-contrib/sphinx-lint
- rev: v1.0.0
+ rev: v1.0.2
hooks:
- id: sphinx-lint
args: [--enable=default-role]
diff --git a/Doc/tools/check-warnings.py b/Doc/tools/check-warnings.py
index 2ddcdb77d16e3f..8beb59af7f61d7 100644
--- a/Doc/tools/check-warnings.py
+++ b/Doc/tools/check-warnings.py
@@ -311,8 +311,11 @@ def main(argv: list[str] | None = None) -> int:
if not Path("Doc").exists() or not Path("Doc").is_dir():
raise RuntimeError(wrong_directory_msg)
- with Path("Doc/sphinx-warnings.txt").open(encoding="UTF-8") as f:
- warnings = f.read().splitlines()
+ warnings = (
+ Path("Doc/sphinx-warnings.txt")
+ .read_text(encoding="UTF-8")
+ .splitlines()
+ )
cwd = str(Path.cwd()) + os.path.sep
files_with_nits = {
_______________________________________________
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]