Start linting with mypy

This commit is contained in:
jo 2021-09-10 14:41:51 +02:00
parent ceb40ee216
commit 3dbc1205d0
13 changed files with 24 additions and 6 deletions

View file

@ -4,8 +4,9 @@ include python.mk
PIP_INSTALL := -r requirements-dev.txt
PYLINT_ARG := tools
MYPY_ARG := .
PYTEST_ARG := .
lint: .pylint
lint: .pylint .mypy
test: .pytest
clean: .clean

View file

@ -5,6 +5,7 @@ CPU_CORES := $(shell nproc)
# PIP_INSTALL := --editable .[dev]
# PYLINT_ARG :=
# MYPY_ARG :=
# PYTEST_ARG :=
VENV := venv
@ -19,6 +20,11 @@ $(VENV):
source $(VENV)/bin/activate
pylint --output-format=colorized $(PYLINT_ARG) || true
.PHONY: .mypy
.mypy: $(VENV)
source $(VENV)/bin/activate
mypy $(MYPY_ARG) || true
.PHONY: .pytest
.pytest: $(VENV)
source venv/bin/activate

View file

@ -1,3 +1,4 @@
mypy
pylint
pytest
pytest-xdist