diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0af4e9ce9..843de93df 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -35,3 +35,6 @@ jobs: run: make test env: GH_TOKEN: 1 + + - name: Type Checking + run: make typecheck diff --git a/Makefile b/Makefile index d37354773..2011e9082 100644 --- a/Makefile +++ b/Makefile @@ -125,4 +125,8 @@ install: virtualenv @echo "-> Install and configure the Python env with base dependencies, offline" ${VENV}/bin/pip install --upgrade --no-index --no-cache-dir --find-links=thirdparty -e . +typecheck: + @echo "-> Run type checking" + @${ACTIVATE} ${PYTHON_EXE} -m mypy --ignore-missing-imports . + .PHONY: virtualenv conf dev envfile install check valid clean migrate postgres sqlite run test package diff --git a/requirements-dev.txt b/requirements-dev.txt index 824ee55c6..34f92dd8f 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -4,3 +4,4 @@ ipython==8.0.1 isort==5.10.1 pytest==7.0.0 pytest-django==4.5.2 +mypy==0.931