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:
parent
acd1f949d2
commit
503f367a0d
2 changed files with 3 additions and 2 deletions
|
|
@ -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"
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue