]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] Add CODEOWNERS and YAML to end-of-file-fixer and trailing-whitespace (GH-13473...
authorHugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Tue, 27 May 2025 11:27:14 +0000 (14:27 +0300)
committerGitHub <noreply@github.com>
Tue, 27 May 2025 11:27:14 +0000 (11:27 +0000)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
.pre-commit-config.yaml
.readthedocs.yml

index d952a53cf3c83ea7d00234eaf45d1693ddc8b70e..834fdfa2fd321dca2f9f718c8a7f6e7ecd95d03c 100644 (file)
@@ -35,12 +35,14 @@ repos:
         exclude: ^Lib/test/test_tomllib/
       - id: check-yaml
       - id: end-of-file-fixer
-        types: [python]
+        types_or: [python, yaml]
         exclude: Lib/test/tokenizedata/coding20731.py
+      - id: end-of-file-fixer
+        files: '^\.github/CODEOWNERS$'
       - id: trailing-whitespace
-        types_or: [c, inc, python, rst]
+        types_or: [c, inc, python, rst, yaml]
       - id: trailing-whitespace
-        files: '\.(gram)$'
+        files: '^\.github/CODEOWNERS|\.(gram)$'
 
   - repo: https://github.com/woodruffw/zizmor-pre-commit
     rev: v1.6.0
index a57de00544e4e3ecb5f87c920d5d635f5ab7c6c5..0a2c3f8345367f4dee6ca52c65be624e3480ce83 100644 (file)
@@ -32,4 +32,3 @@ build:
     - make -C Doc venv html
     - mkdir _readthedocs
     - mv Doc/build/html _readthedocs/html
-