Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit b7d72087 authored by Dorian Turba's avatar Dorian Turba
Browse files

add mypy_run var to mypy template

parent 7684bcd5
No related branches found
No related tags found
No related merge requests found
Pipeline #25272 canceled
......@@ -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
......
......@@ -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}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment