Development
🌐 English · Dansk · Bahasa Melayu
Layout
| Path |
Contents |
src/ |
main.py, paddle.py, ball.py, scoreboard.py, rules.py, constants.py |
tests/ |
pytest tests |
docs/ |
Project documents and docs/images/ |
framework/ |
SQA and QC framework (git submodule) |
pyproject.toml |
Project configuration |
Doxyfile |
Doxygen configuration |
- Game rules that need no display live in
rules.py, so they are unit-tested without a window.
- All numbers (sizes, steps, thresholds, speeds) are in
constants.py.
Run the tests
Tests that open a turtle window are skipped when Tk or a display is missing.
Build the source documentation
Output: docs/doxygen/html/index.html.
Continuous integration
.gitea/workflows/ci.yml installs the project with the dev extra and runs python -m pytest on every push to main and on every pull request.