11@ ECHO OFF
22REM Makefile for project needs
33REM Author: Ben Trachtenberg
4- REM Version: 2.0.0
4+ REM Version: 2.0.1
55REM
66
77SET option = %1
@@ -16,6 +16,7 @@ IF "%option%" == "all" (
1616 black {{cookiecutter.__app_name}}/
1717 black tests/
1818 pylint {{cookiecutter.__app_name}}\
19+ mypy {{cookiecutter.__app_name}}\
1920 pytest --cov --cov-report=html -vvv
2021 bandit -c pyproject.toml -r .
2122 pip-audit -r requirements.txt
@@ -63,6 +64,11 @@ IF "%option%" == "check-security" (
6364 GOTO END
6465)
6566
67+ IF " %option% " == " mypy" (
68+ mypy {{cookiecutter.__app_name}}\
69+ GOTO END
70+ )
71+
6672{% if cookiecutter.app_documents_location == 'github-pages' % }
6773IF " %option% " == " gh-pages" (
6874 rmdir /s /q docs\source\code
@@ -78,6 +84,7 @@ IF "%option%" == "all" (
7884 uv run black {{cookiecutter.__app_name}}/
7985 uv run black tests/
8086 uv run pylint {{cookiecutter.__app_name}}\
87+ uv run mypy {{cookiecutter.__app_name}}\
8188 uv run pytest --cov --cov-report=html -vvv
8289 uv run bandit -c pyproject.toml -r .
8390 uv export --no-dev --no-emit-project --no-editable > requirements.txt
@@ -121,6 +128,11 @@ IF "%option%" == "check-security" (
121128 GOTO END
122129)
123130
131+ IF " %option% " == " mypy" (
132+ uv run mypy {{cookiecutter.__app_name}}\
133+ GOTO END
134+ )
135+
124136IF " %option% " == " pip-export" (
125137 uv export --no-dev --no-emit-project --no-editable > requirements.txt
126138 uv export --no-emit-project --no-editable > requirements-dev.txt
@@ -147,6 +159,7 @@ IF "%option%" == "gh-pages" (
147159@ ECHO check-vuln To check for vulnerabilities in the dependencies
148160@ ECHO check-security To check for vulnerabilities in the code
149161@ ECHO format To format the code with black
162+ @ ECHO mypy To run mypy
150163@ ECHO pylint To run pylint
151164@ ECHO pytest To run pytest with verbose option
152165{% if cookiecutter.package_manager == 'uv' % }@ ECHO pip-export To export the requirements.txt and requirements-dev.txt{% endif % }
0 commit comments