arigram/check.sh
2021-11-28 15:56:03 +02:00

21 lines
537 B
Bash
Executable file

#!/bin/sh
set -ex
echo Checking and formatting with black...
black --check .
echo Python type checking...
mypy arigram --warn-redundant-casts --warn-unused-ignores \
--no-warn-no-return --warn-unreachable --strict-equality \
--ignore-missing-imports --warn-unused-configs \
--disallow-untyped-calls --disallow-untyped-defs \
--disallow-incomplete-defs --check-untyped-defs \
--disallow-untyped-decorators
echo Checking import sorting...
isort -c arigram/*.py
echo Checking unused imports...
flake8 --select=F401