diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7752cdad8a1eb623e58dd4f182fb97bea9f4e2af..95664b150928ea40ad4ff9c4c49b851e25efc824 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 6f9451fb1b905ce4605b77b6e7d9e10493629650..c74ab34cf6e6df0263f02bd2ccd32285698fecfb 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", +]