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

Commit

Permalink
Merge pull request #329 from TezRomacH:Fix-mypy
Browse files Browse the repository at this point in the history
Mypy fix in Makefile
  • Loading branch information
TezRomacH authored Jul 16, 2021
2 parents cca921d + 5734996 commit e17456c
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 e17456c

Please sign in to comment.