Revamp formatting and linting on commit
Remove the prepare script, and run the two stages manually. Better handle Black reformatting by doing a check (for the errcode) then reformat and abort commit to review.
This commit is contained in:
@ -32,7 +32,8 @@ pushd $( git rev-parse --show-toplevel ) &>/dev/null
|
||||
|
||||
# Prepare code
|
||||
echo "Preparing code (format and lint)..."
|
||||
./prepare || exit
|
||||
./format || exit 1
|
||||
./lint || exit 1
|
||||
|
||||
# Build the packages
|
||||
echo -n "Building packages... "
|
||||
|
Reference in New Issue
Block a user