[+!] all but small

some small modifications, tests added
This commit is contained in:
2026-10-07 22:42:46 +03:00
parent fac12b2ea8
commit c16ed7915a
21 changed files with 1190 additions and 100 deletions

View File

@@ -7,7 +7,9 @@ from pathlib import Path
def test_all_python_sources_compile():
"""Проверяет синтаксис всех серверных модулей и клиента без запуска и записи pyc."""
errors = []
for path in sorted((Path(__file__).parents[1] / "src").rglob("*.py")):
root = Path(__file__).parents[1]
paths = list((root / "src").rglob("*.py")) + list((root / "examples").rglob("*.py"))
for path in sorted(paths):
try:
compile(path.read_text(encoding="utf-8"), str(path), "exec")
except SyntaxError as error: