From c22c8476a1101e60c8d87adcdf31272468d2f0eb Mon Sep 17 00:00:00 2001 From: Aneesh Agrawal Date: Mon, 12 Feb 2024 14:27:28 -0500 Subject: [PATCH] Silence the pre-commit hook This can produce a lot of output which is usually not helpful; the diff from `--show-diff-on-failure` shows what changed and the `identity` hook can debug filename selection. --- pre_commit_hooks/yamlfmt | 2 -- 1 file changed, 2 deletions(-) diff --git a/pre_commit_hooks/yamlfmt b/pre_commit_hooks/yamlfmt index ddd6a0b..529d011 100755 --- a/pre_commit_hooks/yamlfmt +++ b/pre_commit_hooks/yamlfmt @@ -144,10 +144,8 @@ class Formatter: """ Read file and write it out to same path """ if not path: path = self.path - print(path, end="") FORMATTER.parse_file(path) # pylint: disable=E0601 FORMATTER.write_file(path) - print(" Done") def parse_file(self, path=None): """ Read the file """