From 573499694f14ce9d9bebf57b33febc9dfb2e3663 Mon Sep 17 00:00:00 2001 From: Roman Tezikov Date: Fri, 16 Jul 2021 20:06:14 +0300 Subject: [PATCH] Hotfix for mypy --- Makefile | 3 ++- pyproject.toml | 2 ++ {{ cookiecutter.project_name }}/Makefile | 3 ++- 3 files changed, 6 insertions(+), 2 deletions(-) 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: