commit 0ae176e3e9c6c914be4f810b36759609625ffa93 Author: Jan D BM Date: Fri Feb 20 16:15:35 2026 +0100 inital commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3d9851d --- /dev/null +++ b/.gitignore @@ -0,0 +1,17 @@ +# Python +.venv/ +__pycache__/ +*.pyc + +# tooling +.pytest_cache/ +.ruff_chache/ + +# editors +.idea/ + +# OS noise +.DS_store + +# Critical +.env diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..9ef38e4 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,2 @@ +[tool.pytest.ini_options] +pythonpath = ["."] \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..6688e59 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,4 @@ +ruff == 0.15.1 +black == 26.1.0 +pytest == 9.0.2 +pre-commit == 4.5.1 \ No newline at end of file diff --git a/src/__init__.py b/src/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/src/moduleA.py b/src/moduleA.py new file mode 100644 index 0000000..893ac19 --- /dev/null +++ b/src/moduleA.py @@ -0,0 +1,6 @@ +def addition(a=1, b=2): + return a + b + + +def f(x: int, y: int) -> int: + return x + y diff --git a/tests/test_moduleA.py b/tests/test_moduleA.py new file mode 100644 index 0000000..c141bc2 --- /dev/null +++ b/tests/test_moduleA.py @@ -0,0 +1,6 @@ +from src.moduleA import addition + + +def test_a(): + assert addition() == 3 + assert addition(5, 5) == 10 \ No newline at end of file