From 3fe10c7e9d5578e289ac11b1535b601d8ed3f86a Mon Sep 17 00:00:00 2001 From: David Sichma Date: Thu, 18 Nov 2021 19:29:17 +0100 Subject: [PATCH] Fixed pre-commit-black file extensions Now hook can find .py files. --- misc/hooks/pre-commit-black | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/hooks/pre-commit-black b/misc/hooks/pre-commit-black index 76d97294da5..8e22e6068e7 100755 --- a/misc/hooks/pre-commit-black +++ b/misc/hooks/pre-commit-black @@ -14,7 +14,7 @@ DELETE_OLD_PATCHES=false # File types to parse. FILE_NAMES="SConstruct SCsub" -FILE_EXTS="py" +FILE_EXTS=".py" # Use pygmentize instead of cat to parse diff with highlighting. # Install it with `pip install pygments` (Linux) or `easy_install Pygments` (Mac)