diff --git a/templates/python/code_quality/mypy/README.md b/templates/python/code_quality/mypy/README.md
index 19e87695f37ccc54025d84f0ccf57d045813611c..51b56b05c3aee53178679de27c50e580c534ef08 100644
--- a/templates/python/code_quality/mypy/README.md
+++ b/templates/python/code_quality/mypy/README.md
@@ -16,11 +16,12 @@ types of variables, function return values, and more.
 
 ## Variables
 
-| Name                | Description                                                                                                                                                   | Default                              |
-|---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------|
-| `PROJECT_PATH`      | The path to the project root directory.                                                                                                                       | `"."`                                |
-| `IMAGE_TAG`         | The default tag for the docker image. See [Python Docker Official Image](https://hub.docker.com/_/python) for supported tags and respective Dockerfile links. | `"latest"`                           |
-| `PYTHON_SETUP`      | Bash commands to setup your python environment.                                                                                                               | `"pip install mypy"`                 |
+| Name           | Description                                                                                                                                                   | Default                   |
+|----------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------|
+| `PROJECT_PATH` | The path to the project root directory.                                                                                                                       | `"."`                     |
+| `IMAGE_TAG`    | The default tag for the docker image. See [Python Docker Official Image](https://hub.docker.com/_/python) for supported tags and respective Dockerfile links. | `"latest"`                |
+| `PYTHON_SETUP` | Bash commands to setup your python environment.                                                                                                               | `"pip install mypy"`      |
+| `MYPY_RUN`     | Bash commands to run `mypy` on your project.                                                                                                                  | `"mypy ${PROJECT_PATH}"`  |
 
 ## Global Configuration of mypy
 
diff --git a/templates/python/code_quality/mypy/mypy.yml b/templates/python/code_quality/mypy/mypy.yml
index 8249e872eb2811afd9887d69d362bf671e3ee488..2f8385c885e9c4040e296b1637923bc1722e38f2 100644
--- a/templates/python/code_quality/mypy/mypy.yml
+++ b/templates/python/code_quality/mypy/mypy.yml
@@ -7,9 +7,10 @@ mypy:
     stage: code_quality
     variables:
         PYTHON_SETUP: "pip install mypy"
+        MYPY_RUN: "mypy ${PROJECT_PATH}"
     script:
         - !reference [.python_install, script]
-        - mypy ${PROJECT_PATH}
+        - ${MYPY_RUN}