diff --git a/python3/{{cookiecutter.project_name}}/Makefile b/python3/{{cookiecutter.project_name}}/Makefile index a0b9ce9..c31ac38 100644 --- a/python3/{{cookiecutter.project_name}}/Makefile +++ b/python3/{{cookiecutter.project_name}}/Makefile @@ -16,7 +16,10 @@ test_unit: venv lint: venv . venv/bin/activate && flake8 . +mypy: venv + . venv/bin/activate && mypy . + deps: venv . venv/bin/activate && pip install -U -r requirements.txt -test: test_unit lint +test: test_unit lint mypy diff --git a/python3/{{cookiecutter.project_name}}/requirements.txt b/python3/{{cookiecutter.project_name}}/requirements.txt index 1f724e9..f312e90 100644 --- a/python3/{{cookiecutter.project_name}}/requirements.txt +++ b/python3/{{cookiecutter.project_name}}/requirements.txt @@ -1,4 +1,7 @@ pytest pytest-cov +pytest-mypy +pytest-flake8 flake8 pip +mypy diff --git a/python3/{{cookiecutter.project_name}}/setup.cfg b/python3/{{cookiecutter.project_name}}/setup.cfg index 3a1f36d..6b17f8b 100644 --- a/python3/{{cookiecutter.project_name}}/setup.cfg +++ b/python3/{{cookiecutter.project_name}}/setup.cfg @@ -9,7 +9,7 @@ ignore = NONE max-line-length = 120 [tool:pytest] -addopts = --cov={{cookiecutter.project_name}} --cov-fail-under=80 --cov-report=term-missing:skip-covered --cov-report=xml --cov-report=html -vvv +addopts = --cov={{cookiecutter.project_name}} --cov-fail-under=80 --cov-report=term-missing:skip-covered --cov-report=xml --cov-report=html --mypy --flake8 -vvv [coverage:run] branch = True diff --git a/python3/{{cookiecutter.project_name}}/tests/test_true.py b/python3/{{cookiecutter.project_name}}/tests/test_true.py index 6a23242..e7b28f8 100644 --- a/python3/{{cookiecutter.project_name}}/tests/test_true.py +++ b/python3/{{cookiecutter.project_name}}/tests/test_true.py @@ -2,5 +2,5 @@ # from mock import MagicMock -def test_true(): - assert True == True +def test_true() -> None: + assert True