generated from mononoki/pyproj
[+!] all but small
some small modifications, tests added
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user