diff --git a/pyproject.toml b/pyproject.toml
index c74ab34cf6e6df0263f02bd2ccd32285698fecfb..de310a19f6c00a18283a5faa0997b5d0e712fe20 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -17,4 +17,5 @@ dependencies = [
     "flake8_project @ {root:uri}/tests/flake8_project",
     "isort_project @ {root:uri}/tests/isort_project",
     "pytest_project @ {root:uri}/tests/pytest_project",
+    "mypy_project @ {root:uri}/tests/mypy_project",
 ]
diff --git a/templates/python/code_quality/mypy/mypy.yml b/templates/python/code_quality/mypy/mypy.yml
index 5922d95e2b98b8f1355440871a70704e8a1728e2..63eeb528400efe2815fedf51160b804487bcdcfb 100644
--- a/templates/python/code_quality/mypy/mypy.yml
+++ b/templates/python/code_quality/mypy/mypy.yml
@@ -6,7 +6,7 @@ mypy:
         - python -m venv venv --upgrade-deps || python -m venv venv  # upgrade-deps is not supported before 3.9
         - source venv/bin/activate
         - pip install mypy
-        - mypy
+        - mypy ${PROJECT_PATH}
     only:
         changes:
             - ./**/*.py
diff --git a/tests/mypy_project/pyproject.toml b/tests/mypy_project/pyproject.toml
index f422a3dc6ac99b6791fc90f37c08c59540d5bda0..51d87c0d9e9611232a20156a08beb71ec93aff77 100644
--- a/tests/mypy_project/pyproject.toml
+++ b/tests/mypy_project/pyproject.toml
@@ -9,3 +9,11 @@ authors = [
     { name = "Author Name", email = "author.name@example.com" },
 ]
 description = "A description of what the package is for."
+dependencies = [
+    "mypy",
+]
+
+
+[tool.mypy]
+packages = "mypy_project"
+python_version = "3.11"