From cd890c7a3b313eb09337541ff8f41ce16698e5c4 Mon Sep 17 00:00:00 2001 From: rapplu93184 Date: Tue, 20 Oct 2026 17:03:19 +0200 Subject: [PATCH] added __ini__ + some changes --- AGENTS.md | 6 +++++- pyproject.toml | 7 ------- src/__init__.py | 1 + compute.py => src/compute.py | 0 test/pyproject.toml | 10 ++++++++++ 5 files changed, 16 insertions(+), 8 deletions(-) delete mode 100644 pyproject.toml create mode 100644 src/__init__.py rename compute.py => src/compute.py (100%) create mode 100644 test/pyproject.toml diff --git a/AGENTS.md b/AGENTS.md index 79a2eba..c08a655 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -1,4 +1,8 @@ # Regeln für dieses Projekt - Code nach PEP 8, Zeilenlänge maximal 88 Zeichen. - Jede Funktion und Methode hat einen Docstring und Type Hints. -- Vor jedem Commit: `ruff check` und `ruff format`. \ No newline at end of file +- Vor jedem Commit: `ruff check` und `ruff format`. + +## Projektstruktur +- Quellcode liegt unter "src/matrixmania/", Tests unter "test/test_matrixmania/" +- Testpakete, Testdateien und Testfunktionen beginnen mit "test_" \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml deleted file mode 100644 index 83cbfc0..0000000 --- a/pyproject.toml +++ /dev/null @@ -1,7 +0,0 @@ -[project] -name = "matrixmania" -version = "0.1.0 -dependencies = ["tabulate", "ruff"] - -[project.optional-dependencies] -dev = ["pytest", "ruff", "pytest-cov"] \ No newline at end of file diff --git a/src/__init__.py b/src/__init__.py new file mode 100644 index 0000000..975a585 --- /dev/null +++ b/src/__init__.py @@ -0,0 +1 @@ +from .compute import matmul, transpose, rot_2D \ No newline at end of file diff --git a/compute.py b/src/compute.py similarity index 100% rename from compute.py rename to src/compute.py diff --git a/test/pyproject.toml b/test/pyproject.toml new file mode 100644 index 0000000..f2ac542 --- /dev/null +++ b/test/pyproject.toml @@ -0,0 +1,10 @@ +[project] +name = "matrixmania" +version = "0.1.0" +dependencies = ["tabulate", "ruff"] + +[project.optional-dependencies] +dev = ["pytest", "ruff", "pytest-cov"] + +[tool.pytest.ini_options] +pythonpath = "src" \ No newline at end of file