mirror of
https://github.com/db9979/uconsole_asw_game.git
synced 2026-12-05 12:24:25 +01:00
server.py keeps CommanderServer and re-exports the rest; the grant table moves to wire.py so the routes never import the server module. The public logger name stays src.commander.server. tests/test_module_size.py holds every source module under 2500 lines. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
16 lines
438 B
Python
16 lines
438 B
Python
"""Plan 1.3, phase 2: no source module grows back into a monolith."""
|
|
|
|
from pathlib import Path
|
|
|
|
LIMIT = 2500
|
|
SRC = Path(__file__).resolve().parent.parent / "src"
|
|
|
|
|
|
def test_no_source_module_exceeds_the_line_limit():
|
|
oversized = {
|
|
str(path.relative_to(SRC.parent)): count
|
|
for path in SRC.rglob("*.py")
|
|
if (count := sum(1 for _ in path.open(encoding="utf-8"))) > LIMIT
|
|
}
|
|
assert not oversized, oversized
|