mirror of
https://github.com/ansible/awx.git
synced 2026-04-14 06:29:25 -02:30
Fix black pre-commit hook (#14212)
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
if [ -z $AWX_IGNORE_BLACK ] ; then
|
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 | grep -E '\.py$')
|
||||||
if [ "x$python_files_changed" != "x" ] ; then
|
if [ "x$python_files_changed" != "x" ] ; then
|
||||||
black --check $python_files_changed || \
|
black --check $python_files_changed || \
|
||||||
if [ $? != 0 ] ; then
|
if [ $? != 0 ] ; then
|
||||||
|
|||||||
Reference in New Issue
Block a user