]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] Fix mixed line endings with pre-commit (GH-148336) (#148339) 3.13
authorHugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Fri, 10 Apr 2026 15:36:16 +0000 (18:36 +0300)
committerGitHub <noreply@github.com>
Fri, 10 Apr 2026 15:36:16 +0000 (18:36 +0300)
Co-authored-by: Zachary Ware <zachary.ware@gmail.com>
.pre-commit-config.yaml

index 055f8854a970f82c18d0024e8fd4a34a32d1cf07..ff08c7583fc4def4f9edcad156df3c923202ed8a 100644 (file)
@@ -78,6 +78,9 @@ repos:
         exclude: Lib/test/tokenizedata/coding20731.py
       - id: end-of-file-fixer
         files: '^\.github/CODEOWNERS$'
+      - id: mixed-line-ending
+        args: [--fix=auto]
+        exclude: '^Lib/test/.*data/'
       - id: trailing-whitespace
         types_or: [c, inc, python, rst, yaml]
       - id: trailing-whitespace