A simple Python project demonstrating a standard project structure using uv for dependency management.
Ensure you have uv installed.
-
Sync the project: This will create a virtual environment and install the package in editable mode.
uv sync
-
Manual editable install (if needed):
uv pip install -e .
You can run the tests using the built-in unittest module via uv run:
bash
uv run python tests/test_hello_world.py
If you have pytest installed, you can simply run:
bash
uv run pytest
You can use the function in your own scripts:
python
from py_hello_world.hello_world import hello_world
print(hello_world())