]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] Add end-of-file-fixer to pre-commit (GH-106065) (#106080)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 25 Jun 2023 11:18:22 +0000 (04:18 -0700)
committerGitHub <noreply@github.com>
Sun, 25 Jun 2023 11:18:22 +0000 (11:18 +0000)
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>
.pre-commit-config.yaml

index 464bcde6e9842496c212e9a1fe5c6e0e09a3193d..d62c57c044728f135ec1dd720b46faf6c5c6386c 100644 (file)
@@ -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]