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.__library_name}}/
1717 black tests/
1818 pylint {{cookiecutter.__library_name}}\
19+ mypy {{cookiecutter.__library_name}}\
1920 pytest --cov --cov-report=html -vvv
2021 bandit -c pyproject.toml -r .
2122 pip-audit -r requirements.txt
@@ -58,6 +59,11 @@ IF "%option%" == "check-security" (
5859 GOTO END
5960)
6061
62+ IF " %option% " == " mypy" (
63+ mypy {{cookiecutter.__library_name}}\
64+ GOTO END
65+ )
66+
6167{% if cookiecutter.library_documents_location == 'github-pages' % }
6268IF " %option% " == " gh-pages" (
6369 rmdir /s /q docs\source\code
@@ -73,6 +79,7 @@ IF "%option%" == "all" (
7379 uv run black {{cookiecutter.__library_name}}/
7480 uv run black tests/
7581 uv run pylint {{cookiecutter.__library_name}}\
82+ uv run mypy {{cookiecutter.__library_name}}\
7683 uv run pytest --cov --cov-report=html -vvv
7784 uv run bandit -c pyproject.toml -r .
7885 uv export --no-dev --no-emit-project --no-editable > requirements.txt
@@ -111,6 +118,11 @@ IF "%option%" == "check-security" (
111118 GOTO END
112119)
113120
121+ IF " %option% " == " mypy" (
122+ uv run mypy {{cookiecutter.__library_name}}\
123+ GOTO END
124+ )
125+
114126IF " %option% " == " pip-export" (
115127 uv export --no-dev --no-emit-project --no-editable > requirements.txt
116128 uv export --no-emit-project --no-editable > requirements-dev.txt
@@ -136,6 +148,7 @@ IF "%option%" == "gh-pages" (
136148@ ECHO check-vuln To check for vulnerabilities in the dependencies
137149@ ECHO check-security To check for vulnerabilities in the code
138150@ ECHO format To format the code with black
151+ @ ECHO mypy To run mypy
139152@ ECHO pylint To run pylint
140153@ ECHO pytest To run pytest with verbose option
141154{% if cookiecutter.package_manager == 'uv' % }@ ECHO pip-export To export the requirements.txt and requirements-dev.txt{% endif % }
0 commit comments