Use user installed binaries

This commit is contained in:
Sonny 2019-08-24 19:19:38 +02:00
parent e382a52cf1
commit a08e8e9a74
4 changed files with 4 additions and 4 deletions

View file

@ -3,7 +3,7 @@ FILES=$(git diff --cached --name-only --diff-filter=ACM "*.py" | sed 's| |\\ |g'
if [ ! -z "$FILES" ]; then
# 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
exit 1

View file

@ -3,7 +3,7 @@ FILES=$(git diff --cached --name-only --diff-filter=ACM "*.py" | sed 's| |\\ |g'
if [ ! -z "$FILES" ]; then
# Format all selected files
echo "$FILES" | xargs ./env/bin/isort
echo "$FILES" | xargs $HOME/.local/bin/isort
if [ $? -ne 0 ]; then
exit 1

View file

@ -3,7 +3,7 @@ FILES=$(git diff --cached --name-only --diff-filter=ACM "*.js" | sed 's| |\\ |g'
if [ ! -z "$FILES" ]; then
# Prettify all selected files
echo "$FILES" | xargs ./node_modules/.bin/prettier --write
echo "$FILES" | xargs prettier --write
if [ $? -ne 0 ]; then
exit 1

View file

@ -3,7 +3,7 @@ FILES=$(git diff --cached --name-only --diff-filter=ACM "*.py" | sed 's| |\\ |g'
if [ ! -z "$FILES" ]; then
# 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
exit 1