summaryrefslogtreecommitdiffstats
path: root/pre-commit.sh
diff options
context:
space:
mode:
Diffstat (limited to 'pre-commit.sh')
-rwxr-xr-xpre-commit.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/pre-commit.sh b/pre-commit.sh
index 003106216b..546bcab23f 100755
--- a/pre-commit.sh
+++ b/pre-commit.sh
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
if [ -z $AWX_IGNORE_BLACK ] ; then
- python_files_changed=$(git diff --cached --name-only --diff-filter=AM | grep -E '\.py$')
+ python_files_changed=$(git diff --cached --name-only --diff-filter=AM awx/ awxkit/ tools/ | grep -E '\.py$')
if [ "x$python_files_changed" != "x" ] ; then
black --check $python_files_changed || \
if [ $? != 0 ] ; then