Add project configuration, .gitignore and the package skeleton

pyproject.toml declares Python 3.13 or later, an empty runtime dependency list and
pytest, ruff and mypy as development tools. The package has constants.py, the one
place for constants, and a smoke test keeps the test run green.

Task: MIL-001#1
Task: MIL-001#2
Task: MIL-001#3
This commit is contained in:
2026-10-07 23:58:37 +08:00
parent 1526262910
commit 2cd19dfd03
6 changed files with 184 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
"""!
@file constants.py
@brief Every constant of the project, in one place.
Numbers and names used by the challenges live here and nowhere else, so a
challenge can be tuned (for example the number of dashes) without touching its
drawing code.
"""
## Title of the turtle window.
WINDOW_TITLE = "Turtle Challenges"
## Largest value of one color channel; also the turtle color mode, so that
## colors can be given as RGB tuples from 0 to 255.
COLOR_MODE = 255