commit baa74c8b0a265edeb82c8fada7bec898231aff1b Author: Daniel Heras Quesada Date: Wed Oct 1 17:05:21 2025 +0200 chore: first commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3065e0c --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/venv +/venv/* diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..f4db715 --- /dev/null +++ b/Makefile @@ -0,0 +1,7 @@ +install: + echo ">>> Installing dependencies" + pip install --upgrade pip + pip install -r requirements.txt + +test: + python -m pytest -v diff --git a/README.rst b/README.rst new file mode 100644 index 0000000..1a210cf --- /dev/null +++ b/README.rst @@ -0,0 +1,4 @@ +Python by example +================= + +The intention of this repository is to teach me the basics, along with the best or common practiced, of python development. diff --git a/config.json b/config.json new file mode 100644 index 0000000..e69de29 diff --git a/main.py b/main.py new file mode 100644 index 0000000..d4a8ddd --- /dev/null +++ b/main.py @@ -0,0 +1,2 @@ +if __name__ == "__main__": + print("This is a test") diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..20040f5 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,6 @@ +numpy==2.3.3 +pandas==2.3.3 +python-dateutil==2.9.0.post0 +pytz==2025.2 +six==1.17.0 +tzdata==2025.2 diff --git a/tests/__pycache__/test_example.cpython-313-pytest-8.4.2.pyc b/tests/__pycache__/test_example.cpython-313-pytest-8.4.2.pyc new file mode 100644 index 0000000..52cad94 Binary files /dev/null and b/tests/__pycache__/test_example.cpython-313-pytest-8.4.2.pyc differ diff --git a/tests/test_example.py b/tests/test_example.py new file mode 100644 index 0000000..5ba8b08 --- /dev/null +++ b/tests/test_example.py @@ -0,0 +1,8 @@ +import pytest + +@pytest.fixture +def sample_data(): + return [1, 2, 3] + +def test_sum(sample_data): + assert sum(sample_data) == 6