[Python-checkins] [3.12] Add end-of-file-fixer to pre-commit (GH-106065) (#106080)

AlexWaygood webhook-mailer at python.org
Sun Jun 25 07:18:25 EDT 2023


https://github.com/python/cpython/commit/f955ed9da74e50f3901fbefb2e9a9309563077c0
commit: f955ed9da74e50f3901fbefb2e9a9309563077c0
branch: 3.12
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: AlexWaygood <Alex.Waygood at Gmail.com>
date: 2023-06-25T11:18:22Z
summary:

[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 at users.noreply.github.com>

files:
M .pre-commit-config.yaml

diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 464bcde6e9842..d62c57c044728 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]
 



More information about the Python-checkins mailing list