From 49f6c2459d444d5fd0f4079cd10b9975b9ce237e Mon Sep 17 00:00:00 2001 From: Sing_chan <51314274+betterpig@users.noreply.github.com> Date: Thu, 15 Sep 2022 10:28:49 +0800 Subject: [PATCH] add trailing whitespace hook (#44474) --- .pre-commit-config.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f4c0f1d97cb..92bb2751c64 100755 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -25,6 +25,8 @@ repos: - id: end-of-file-fixer - id: sort-simple-yaml files: (api|backward|api_[a-z_]+)\.yaml$ + - id: trailing-whitespace + files: (.*\.(py|bzl)|BUILD|.*\.BUILD|WORKSPACE)$ - repo: local hooks: - id: clang-format -- GitLab