diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 95664b150928ea40ad4ff9c4c49b851e25efc824..59c495f28d97eecbf35fb48886c59e1ab27a5ba8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -30,17 +30,17 @@ 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/**/* +#flake8-plugin: +# 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 diff --git a/tests/mypy_project/pyproject.toml b/tests/mypy_project/pyproject.toml new file mode 100644 index 0000000000000000000000000000000000000000..f422a3dc6ac99b6791fc90f37c08c59540d5bda0 --- /dev/null +++ b/tests/mypy_project/pyproject.toml @@ -0,0 +1,11 @@ +[build-system] +requires = ["hatchling"] +build-backend = "hatchling.build" + +[project] +name = "mypy_project" +version = "0.1.0" +authors = [ + { name = "Author Name", email = "author.name@example.com" }, +] +description = "A description of what the package is for." diff --git a/tests/mypy_project/src/mypy_project/__init__.py b/tests/mypy_project/src/mypy_project/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..d344850aeba9af5e0ed275410cb0644163f3c765 --- /dev/null +++ b/tests/mypy_project/src/mypy_project/__init__.py @@ -0,0 +1,3 @@ +from mypy_project.main import main + +__all__ = ["main"] diff --git a/tests/mypy_project/src/mypy_project/main.py b/tests/mypy_project/src/mypy_project/main.py new file mode 100644 index 0000000000000000000000000000000000000000..250de775d1c9fcfd14cf1b50313c5e872521be9f --- /dev/null +++ b/tests/mypy_project/src/mypy_project/main.py @@ -0,0 +1,11 @@ +"""Sample main module.""" + + +def main() -> bool: + """Sample main function.""" + print("Hello, world!") + return True + + +if __name__ == "__main__": + main()