]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add end-of-file-fixer to pre-commit (#106065)
authorHugo van Kemenade <hugovk@users.noreply.github.com>
Sun, 25 Jun 2023 10:44:23 +0000 (13:44 +0300)
committerGitHub <noreply@github.com>
Sun, 25 Jun 2023 10:44:23 +0000 (04:44 -0600)
.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]