mirror of
https://github.com/ansible/awx.git
synced 2026-01-09 15:02:07 -03:30
7 lines
265 B
Bash
Executable File
7 lines
265 B
Bash
Executable File
if [ -z $AWX_IGNORE_BLACK ]
|
|
then
|
|
black --check $(git diff --cached --name-only --diff-filter=AM | grep -E '\.py') || \
|
|
(echo 'To fix this, run `make black` to auto-format your code prior to commit, or set AWX_IGNORE_BLACK=1' && \
|
|
exit 1)
|
|
fi
|