We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c97a48b commit 9745058Copy full SHA for 9745058
pre-commit.sh
@@ -1,6 +1,6 @@
1
#!/usr/bin/env bash
2
if [ -z $AWX_IGNORE_BLACK ] ; then
3
- 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$')
4
if [ "x$python_files_changed" != "x" ] ; then
5
black --check $python_files_changed || \
6
if [ $? != 0 ] ; then
0 commit comments