summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHugo van Kemenade <hugovk@users.noreply.github.com>2023-06-25 10:44:23 (GMT)
committerGitHub <noreply@github.com>2023-06-25 10:44:23 (GMT)
commit8c24a837371439b8e922ff47275085b581f510c5 (patch)
tree06e28b65e3a029ced236bb94dc47ed502e81fd8f
parentbef1c8761e3b0dfc5708747bb646ad8b669cbd67 (diff)
downloadcpython-8c24a837371439b8e922ff47275085b581f510c5.zip
cpython-8c24a837371439b8e922ff47275085b581f510c5.tar.gz
cpython-8c24a837371439b8e922ff47275085b581f510c5.tar.bz2
Add end-of-file-fixer to pre-commit (#106065)
-rw-r--r--.pre-commit-config.yaml3
1 files changed, 3 insertions, 0 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 464bcde..d62c57c 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -3,6 +3,9 @@ repos:
rev: v4.4.0
hooks:
- id: check-yaml
+ - id: end-of-file-fixer
+ types: [python]
+ exclude: Lib/test/coding20731.py
- id: trailing-whitespace
types_or: [c, python, rst]