Use user installed binaries
This commit is contained in:
parent
e382a52cf1
commit
a08e8e9a74
4 changed files with 4 additions and 4 deletions
|
|
@ -3,7 +3,7 @@ FILES=$(git diff --cached --name-only --diff-filter=ACM "*.py" | sed 's| |\\ |g'
|
||||||
|
|
||||||
if [ ! -z "$FILES" ]; then
|
if [ ! -z "$FILES" ]; then
|
||||||
# Format all selected files
|
# Format all selected files
|
||||||
echo "$FILES" | xargs -I {} /bin/bash -c "/home/sonny/.local/bin/autoflake --in-place --remove-unused-variables {}"
|
echo "$FILES" | xargs -I {} /bin/bash -c "$HOME/.local/bin/autoflake --in-place --remove-unused-variables {}"
|
||||||
|
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
exit 1
|
exit 1
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ FILES=$(git diff --cached --name-only --diff-filter=ACM "*.py" | sed 's| |\\ |g'
|
||||||
|
|
||||||
if [ ! -z "$FILES" ]; then
|
if [ ! -z "$FILES" ]; then
|
||||||
# Format all selected files
|
# Format all selected files
|
||||||
echo "$FILES" | xargs ./env/bin/isort
|
echo "$FILES" | xargs $HOME/.local/bin/isort
|
||||||
|
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
exit 1
|
exit 1
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ FILES=$(git diff --cached --name-only --diff-filter=ACM "*.js" | sed 's| |\\ |g'
|
||||||
|
|
||||||
if [ ! -z "$FILES" ]; then
|
if [ ! -z "$FILES" ]; then
|
||||||
# Prettify all selected files
|
# Prettify all selected files
|
||||||
echo "$FILES" | xargs ./node_modules/.bin/prettier --write
|
echo "$FILES" | xargs prettier --write
|
||||||
|
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
exit 1
|
exit 1
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ FILES=$(git diff --cached --name-only --diff-filter=ACM "*.py" | sed 's| |\\ |g'
|
||||||
|
|
||||||
if [ ! -z "$FILES" ]; then
|
if [ ! -z "$FILES" ]; then
|
||||||
# Format all selected files
|
# Format all selected files
|
||||||
echo "$FILES" | xargs ./env/bin/yapf --in-place --verbose --style=./yapf.conf
|
echo "$FILES" | xargs $HOME/.local/bin/yapf --in-place --verbose --style=./yapf.conf
|
||||||
|
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
exit 1
|
exit 1
|
||||||
|
|
|
||||||
Reference in a new issue