From 0665c66e3cd6c6320c7ee367e4c5859775df0a0f Mon Sep 17 00:00:00 2001 From: Dorian Turba <froggit.commit.z3jqj@simplelogin.com> Date: Wed, 19 Jul 2023 09:41:06 +0200 Subject: [PATCH] add mypy template ci --- .gitlab-ci.yml | 24 ++++++++++++++++++++++++ pyproject.toml | 6 ++++++ 2 files changed, 30 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7752cda..95664b1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,6 +6,7 @@ include: - local: 'templates/python/code_quality/flake8/flake8.yml' - local: 'templates/python/code_quality/black/black.yml' - local: 'templates/python/code_quality/isort/isort.yml' + - local: 'templates/python/code_quality/mypy/mypy.yml' pytest: stage: templates @@ -29,6 +30,18 @@ flake8: - templates/python/code_quality/flake8/**/* - tests/flake8_project/**/* +flake8-pluggin: + stage: templates + variables: + PROJECT_PATH: "tests/flake8_project" + PYTHON_SETUP: "pip install flake8 flake8-bugbear" + only: + changes: + - .gitlab-ci.yml + - pyproject.toml + - templates/python/code_quality/flake8/**/* + - tests/flake8_project/**/* + black: stage: templates variables: @@ -51,3 +64,14 @@ isort: - pyproject.toml - templates/python/code_quality/isort/**/* - tests/isort_project/**/* + +mypy: + stage: templates + variables: + PROJECT_PATH: "tests/mypy_project" + only: + changes: + - .gitlab-ci.yml + - pyproject.toml + - templates/python/code_quality/mypy/**/* + - tests/mypy_project/**/* diff --git a/pyproject.toml b/pyproject.toml index 6f9451f..c74ab34 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,3 +12,9 @@ authors = [ { name = "Dorian Turba", email = "author.name@example.com" }, ] description = "A description of what the package is for." +dependencies = [ + "black_project @ {root:uri}/tests/black_project", + "flake8_project @ {root:uri}/tests/flake8_project", + "isort_project @ {root:uri}/tests/isort_project", + "pytest_project @ {root:uri}/tests/pytest_project", +] -- GitLab