From b4825d065c18848cfe42a45ac427ca402ff4f7fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Motheu?= <66940960+loicatNGT@users.noreply.github.com> Date: Wed, 9 Apr 2025 17:26:09 +0200 Subject: [PATCH] feat: proper package mode to false --- pyproject.toml | 4 +++- src/{python_template/__init__.py => main.py} | 0 src/python_template/main.py | 25 -------------------- 3 files changed, 3 insertions(+), 26 deletions(-) rename src/{python_template/__init__.py => main.py} (100%) delete mode 100644 src/python_template/main.py diff --git a/pyproject.toml b/pyproject.toml index 6a5da95..b211962 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,11 +5,13 @@ description = "Used to templatize python projects." authors = [{ name = "Loïc Motheu", email = "lmotheu@gmail.com" }] readme = "README.md" requires-python = ">=3.13,<4.0" -package-mode = false dependencies = [ "loguru (>=0.7.3,<0.8.0)" ] +[tool.poetry] +package-mode = false + [tool.poetry.group.dev.dependencies] mypy = "^1.15.0" pre-commit = "^4.2.0" diff --git a/src/python_template/__init__.py b/src/main.py similarity index 100% rename from src/python_template/__init__.py rename to src/main.py diff --git a/src/python_template/main.py b/src/python_template/main.py deleted file mode 100644 index 159d1ac..0000000 --- a/src/python_template/main.py +++ /dev/null @@ -1,25 +0,0 @@ -"""Public module example.""" - -from loguru import logger - - -def example(data: str) -> None: - """Use this docstring as an example for an Example function. - - Args: - data: a string, testing - - Returns: - Nothing - - """ - logger.info(data) - - -if __name__ == "__main__": - logger.info("hello world, test") - - a = 5 - b = 1 - - example(data=str(a + b))