MIL-001: project foundation
pyproject.toml (Python >=3.13, no runtime dependencies, speech and dev extras), Python .gitignore, layer skeleton with constants.py, Doxyfile, README with the .venv instructions, the Malay to Danish word list and review record RC-023. Task: MIL-001#1 Task: MIL-001#2 Task: MIL-001#3 Task: MIL-001#4 Task: MIL-001#5 Task: MIL-001#6
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
"""Presentation layer: views, view models and the entry point.
|
||||
|
||||
@file __init__.py
|
||||
@brief Holds the user interface and the composition root; may import every inner layer.
|
||||
"""
|
||||
@@ -0,0 +1,28 @@
|
||||
"""Entry point of the flash card program.
|
||||
|
||||
@file app.py
|
||||
@brief Starts the program; the window arrives in MIL-002.
|
||||
"""
|
||||
|
||||
from collections.abc import Sequence
|
||||
from typing import NoReturn
|
||||
|
||||
|
||||
def main(argv: Sequence[str] | None = None) -> int:
|
||||
"""Run the program and return its exit code.
|
||||
|
||||
The window arrives in MIL-002; for now nothing happens.
|
||||
|
||||
@param argv Command line arguments, or None for none.
|
||||
@return The exit code, 0 on success.
|
||||
"""
|
||||
return 0
|
||||
|
||||
|
||||
def run() -> NoReturn:
|
||||
"""Run the program and exit the interpreter with its exit code.
|
||||
|
||||
@return Never returns; the function always raises SystemExit.
|
||||
@throws SystemExit Always, with the exit code of main.
|
||||
"""
|
||||
raise SystemExit(main())
|
||||
Reference in New Issue
Block a user