Fix scripts when there are only notebooks

This commit is contained in:
Andras Schmelczer 2022-06-19 17:03:40 +02:00
parent 4501ebfedb
commit c9d0cdb2df
No known key found for this signature in database
GPG key ID: 0EA1BC97D0AB076E
2 changed files with 12 additions and 4 deletions

View file

@ -18,10 +18,14 @@ python3 -m isort --profile black --skip .env .
echo Running black
python3 -m black . --exclude .env
echo Running mypy
python3 -m mypy --namespace-packages --ignore-missing-imports --install-types --non-interactive --disallow-untyped-defs --disallow-incomplete-defs --pretty --follow-imports=silent --exclude=external/ --exclude=/build/ .
if ls *.py 1> /dev/null 2>&1; then
echo Running mypy
python3 -m mypy --namespace-packages --ignore-missing-imports --install-types --non-interactive --disallow-untyped-defs --disallow-incomplete-defs --pretty --follow-imports=silent --exclude=external/ --exclude=/build/ .
fi
echo Running Flake8
python3 -m flake8 . --count --show-source --statistics --exclude=__init__.py,.env,external --ignore=E501,E722,E402,W503,E203
cd -
echo "Finished formatting"