diff --git a/Makefile b/Makefile index ec0b0de9..ee67194d 100644 --- a/Makefile +++ b/Makefile @@ -16,6 +16,7 @@ poetry-remove: install: poetry lock -n && poetry export --without-hashes > requirements.txt poetry install -n + poetry run mypy --install-types --non-interactive .PHONY: pre-commit-install pre-commit-install: @@ -44,7 +45,7 @@ check-codestyle: .PHONY: mypy mypy: - poetry run mypy --install-types --non-interactive --show-traceback --config-file pyproject.toml ./ + poetry run mypy --config-file pyproject.toml hooks tests .PHONY: check-safety check-safety: diff --git a/pyproject.toml b/pyproject.toml index 88a5dbc9..bd8117f5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -87,6 +87,8 @@ color_output = true # mypy configurations: https://mypy.readthedocs.io/en/latest/config_file.html#using-a-pyproject-toml-file python_version = 3.7 pretty = true +show_traceback = true +color_output = true allow_redefinition = false check_untyped_defs = true diff --git a/{{ cookiecutter.project_name }}/Makefile b/{{ cookiecutter.project_name }}/Makefile index 5fb7a9ad..10d369cf 100644 --- a/{{ cookiecutter.project_name }}/Makefile +++ b/{{ cookiecutter.project_name }}/Makefile @@ -20,6 +20,7 @@ poetry-remove: install: poetry lock -n && poetry export --without-hashes > requirements.txt poetry install -n + poetry run mypy --install-types --non-interactive .PHONY: pre-commit-install pre-commit-install: @@ -48,7 +49,7 @@ check-codestyle: .PHONY: mypy mypy: - poetry run mypy --install-types --non-interactive --show-traceback --config-file pyproject.toml ./ + poetry run mypy --config-file pyproject.toml ./ .PHONY: check-safety check-safety: