10000 [3.13] Add CODEOWNERS and YAML to end-of-file-fixer and trailing-whit… · python/cpython@3593d0d · GitHub
[go: up one dir, main page]

Skip to content

Commit 3593d0d

Browse files
hugovkAA-Turner
andauthored
[3.13] Add CODEOWNERS and YAML to end-of-file-fixer and trailing-whitespace (GH-134730) (#134787)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
1 parent 5fb05ea commit 3593d0d

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,14 @@ repos:
3535
exclude: ^Lib/test/test_tomllib/
3636
- id: check-yaml
3737
- id: end-of-file-fixer
38-
types: [python]
38+
types_or: [python, yaml]
3939
exclude: Lib/test/tokenizedata/coding20731.py
40+
- id: end-of-file-fixer
41+
files: '^\.github/CODEOWNERS$'
4042
- id: trailing-whitespace
41-
types_or: [c, inc, python, rst]
43+
types_or: [c, inc, python, rst, yaml]
4244
- id: trailing-whitespace
43-
files: '\.(gram)$'
45+
files: '^\.github/CODEOWNERS|\.(gram)$'
4446

4547
- repo: https://github.com/woodruffw/zizmor-pre-commit
4648
rev: v1.6.0

.readthedocs.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,3 @@ build:
3232
- make -C Doc venv html
3333
- mkdir _readthedocs
3434
- mv Doc/build/html _readthedocs/html
35-

0 commit comments

Comments
 (0)
0