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

Commit e17456c

Browse files
authored
Merge pull request #329 from TezRomacH:Fix-mypy
Mypy fix in Makefile
2 parents cca921d + 5734996 commit e17456c

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ poetry-remove:
1616
install:
1717
poetry lock -n && poetry export --without-hashes > requirements.txt
1818
poetry install -n
19+
poetry run mypy --install-types --non-interactive
1920

2021
.PHONY: pre-commit-install
2122
pre-commit-install:
@@ -44,7 +45,7 @@ check-codestyle:
4445

4546
.PHONY: mypy
4647
mypy:
47-
poetry run mypy --install-types --non-interactive --show-traceback --config-file pyproject.toml ./
48+
poetry run mypy --config-file pyproject.toml hooks tests
4849

4950
.PHONY: check-safety
5051
check-safety:

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ color_output = true
8787
# mypy configurations: https://mypy.readthedocs.io/en/latest/config_file.html#using-a-pyproject-toml-file
8888
python_version = 3.7
8989
pretty = true
90+
show_traceback = true
91+
color_output = true
9092

9193
allow_redefinition = false
9294
check_untyped_defs = true

{{ cookiecutter.project_name }}/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ poetry-remove:
2020
install:
2121
poetry lock -n && poetry export --without-hashes > requirements.txt
2222
poetry install -n
23+
poetry run mypy --install-types --non-interactive
2324

2425
.PHONY: pre-commit-install
2526
pre-commit-install:
@@ -48,7 +49,7 @@ check-codestyle:
4849

4950
.PHONY: mypy
5051
mypy:
51-
poetry run mypy --install-types --non-interactive --show-traceback --config-file pyproject.toml ./
52+
poetry run mypy --config-file pyproject.toml ./
5253

5354
.PHONY: check-safety
5455
check-safety:

0 commit comments

Comments
 (0)