fix some mypy lint

This commit is contained in:
ducklet 2020-11-08 10:35:26 +01:00
parent 9d7d80d3a5
commit 7c7a1fcde2
6 changed files with 20 additions and 6 deletions

View file

@ -6,6 +6,7 @@ if [ "$1" = '--fix' ]; then
black .
isort --profile black .
autoflake --in-place --recursive .
mypy . || : # ignore
)
exit
fi
@ -14,6 +15,7 @@ error=0
(set -x; black --check .) || error=$?
(set -x; isort --profile black --check .) || error=$?
(set -x; autoflake --check --recursive .) || error=$?
(set -x; autoflake --check --recursive . | uniq) || error=$?
(set -x; mypy .) || : # ignore
exit "$error"