From 8c24a837371439b8e922ff47275085b581f510c5 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Sun, 25 Jun 2023 13:44:23 +0300 Subject: [PATCH] Add end-of-file-fixer to pre-commit (#106065) --- .pre-commit-config.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 464bcde6e98..d62c57c0447 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]