Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

Commit

Permalink
Hotfix for mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
TezRomacH committed Jul 16, 2021
1 parent cca921d commit 5734996
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion {{ cookiecutter.project_name }}/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 5734996

Please sign in to comment.