arigram/check.sh
Ari Archer 6d987bdfb5
CI: Ignore symbols
Signed-off-by: Ari Archer <truncateddinosour@gmail.com>
2022-02-17 00:36:18 +02:00

22 lines
645 B
Bash
Executable file

#!/bin/sh
set -ex
echo Checking and formatting with black...
black --check arigram/
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 --pretty --show-traceback \
--no-warn-unused-ignores --follow-imports=error --namespace-packages
echo Checking import sorting...
isort -c arigram/*.py
echo Checking unused imports...
flake8 --select=F401