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:
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:
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/
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
files: '^\.github/CODEOWNERS|\.(gram)$'
- repo: https://github.com/woodruffw/zizmor-pre-commit
- rev: v1.6.0
+ rev: v1.11.0
hooks:
- id: zizmor
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",
"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)