minor script fixes

mypy has no fix function so it shouldn't be called as part of the fix
process.
This commit is contained in:
ducklet 2020-11-14 14:38:09 +01:00
parent acd1f949d2
commit 503f367a0d
2 changed files with 3 additions and 2 deletions

View file

@ -1,5 +1,7 @@
#!/bin/sh -eu #!/bin/sh -eu
tag=latest
cd "$RUN_DIR" cd "$RUN_DIR"
contextdir="$RUN_DIR"/docker contextdir="$RUN_DIR"/docker
@ -12,4 +14,4 @@ fi
set -x set -x
docker build "$@" --tag "$image":latest "$contextdir" docker build "$@" --tag "$image":"$tag" "$contextdir"

View file

@ -13,7 +13,6 @@ if [ "$1" = '--fix' ]; then
autoflake --in-place --recursive $autoflake_opts . autoflake --in-place --recursive $autoflake_opts .
black . black .
isort --profile black . isort --profile black .
mypy . || : # ignore
) )
exit exit
fi fi