summaryrefslogtreecommitdiffstats
path: root/.pre-commit-config.yaml
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-06-25 11:18:22 (GMT)
committerGitHub <noreply@github.com>2023-06-25 11:18:22 (GMT)
commitf955ed9da74e50f3901fbefb2e9a9309563077c0 (patch)
tree86119123ac92bece1a8b094745af146fe4dc77cb /.pre-commit-config.yaml
parentf930bee0037b7c54ded9043618bcae65f018ef03 (diff)
downloadcpython-f955ed9da74e50f3901fbefb2e9a9309563077c0.zip
cpython-f955ed9da74e50f3901fbefb2e9a9309563077c0.tar.gz
cpython-f955ed9da74e50f3901fbefb2e9a9309563077c0.tar.bz2
[3.12] Add end-of-file-fixer to pre-commit (GH-106065) (#106080)
Add end-of-file-fixer to pre-commit (GH-106065) (cherry picked from commit 8c24a837371439b8e922ff47275085b581f510c5) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Diffstat (limited to '.pre-commit-config.yaml')
-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]