Update pre-commit hooks (#137591)
Some checks are pending
Tests / (push) Blocked by required conditions
Tests / Windows MSI (push) Blocked by required conditions
Tests / Cross build Linux (push) Blocked by required conditions
Tests / Change detection (push) Waiting to run
Tests / Docs (push) Blocked by required conditions
Tests / Check if Autoconf files are up to date (push) Blocked by required conditions
Tests / Check if generated files are up to date (push) Blocked by required conditions
Tests / Ubuntu SSL tests with OpenSSL (push) Blocked by required conditions
Tests / Ubuntu SSL tests with AWS-LC (push) Blocked by required conditions
Tests / WASI (push) Blocked by required conditions
Tests / Hypothesis tests on Ubuntu (push) Blocked by required conditions
Tests / Address sanitizer (push) Blocked by required conditions
Tests / Sanitizers (push) Blocked by required conditions
Tests / CIFuzz (push) Blocked by required conditions
Tests / All required checks pass (push) Blocked by required conditions
Lint / lint (push) Waiting to run
mypy / Run mypy on Lib/_pyrepl (push) Waiting to run
mypy / Run mypy on Lib/test/libregrtest (push) Waiting to run
mypy / Run mypy on Lib/tomllib (push) Waiting to run
mypy / Run mypy on Tools/build (push) Waiting to run
mypy / Run mypy on Tools/cases_generator (push) Waiting to run
mypy / Run mypy on Tools/clinic (push) Waiting to run
mypy / Run mypy on Tools/jit (push) Waiting to run
mypy / Run mypy on Tools/peg_generator (push) Waiting to run

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
This commit is contained in:
Malcolm Smith 2025-08-10 23:32:50 +01:00 committed by GitHub
parent 55788a9096
commit b36d23f58e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 19 additions and 12 deletions

View file

@ -178,8 +178,8 @@ jobs:
free-threading: ${{ matrix.free-threading }} free-threading: ${{ matrix.free-threading }}
build-windows-msi: build-windows-msi:
name: >- # ${{ '' } is a hack to nest jobs under the same sidebar category # ${{ '' } is a hack to nest jobs under the same sidebar category.
Windows MSI${{ '' }} name: Windows MSI${{ '' }} # zizmor: ignore[obfuscation]
needs: build-context needs: build-context
if: fromJSON(needs.build-context.outputs.run-windows-msi) if: fromJSON(needs.build-context.outputs.run-windows-msi)
strategy: strategy:
@ -586,8 +586,8 @@ jobs:
run: xvfb-run make ci run: xvfb-run make ci
build-san: build-san:
name: >- # ${{ '' } is a hack to nest jobs under the same sidebar category # ${{ '' } is a hack to nest jobs under the same sidebar category.
Sanitizers${{ '' }} name: Sanitizers${{ '' }} # zizmor: ignore[obfuscation]
needs: build-context needs: build-context
if: needs.build-context.outputs.run-tests == 'true' if: needs.build-context.outputs.run-tests == 'true'
strategy: strategy:

View file

@ -1,6 +1,6 @@
repos: repos:
- repo: https://github.com/astral-sh/ruff-pre-commit - repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.11.8 rev: v0.12.8
hooks: hooks:
- id: ruff - id: ruff
name: Run Ruff (lint) on Doc/ name: Run Ruff (lint) on Doc/
@ -42,7 +42,7 @@ repos:
exclude: ^Tools/c-analyzer/cpython/_parser.py exclude: ^Tools/c-analyzer/cpython/_parser.py
- repo: https://github.com/pre-commit/pre-commit-hooks - repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0 rev: v6.0.0
hooks: hooks:
- id: check-case-conflict - id: check-case-conflict
- id: check-merge-conflict - id: check-merge-conflict
@ -60,7 +60,7 @@ repos:
files: '^\.github/CODEOWNERS|\.(gram)$' files: '^\.github/CODEOWNERS|\.(gram)$'
- repo: https://github.com/python-jsonschema/check-jsonschema - repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.33.0 rev: 0.33.2
hooks: hooks:
- id: check-dependabot - id: check-dependabot
- id: check-github-workflows - id: check-github-workflows
@ -72,7 +72,7 @@ repos:
- id: actionlint - id: actionlint
- repo: https://github.com/woodruffw/zizmor-pre-commit - repo: https://github.com/woodruffw/zizmor-pre-commit
rev: v1.6.0 rev: v1.11.0
hooks: hooks:
- id: zizmor - id: zizmor

View file

@ -1,5 +1,7 @@
extend = "../../.ruff.toml" # Inherit the project-wide settings extend = "../../.ruff.toml" # Inherit the project-wide settings
target-version = "py312"
extend-exclude = [ extend-exclude = [
# Excluded (run with the other AC files in its own separate ruff job in pre-commit) # Excluded (run with the other AC files in its own separate ruff job in pre-commit)
"test_clinic.py", "test_clinic.py",
@ -8,15 +10,20 @@ extend-exclude = [
# Non UTF-8 files # Non UTF-8 files
"encoded_modules/module_iso_8859_1.py", "encoded_modules/module_iso_8859_1.py",
"encoded_modules/module_koi8_r.py", "encoded_modules/module_koi8_r.py",
# SyntaxError because of t-strings
"test_annotationlib.py",
"test_string/test_templatelib.py",
"test_tstring.py",
# New grammar constructions may not yet be recognized by Ruff, # New grammar constructions may not yet be recognized by Ruff,
# and tests re-use the same names as only the grammar is being checked. # and tests re-use the same names as only the grammar is being checked.
"test_grammar.py", "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] [lint]
select = [ select = [
"F401", # Unused import "F401", # Unused import