fix(tests): ruff E741 — однобуквенное имя переменной в разборе скрипта
All checks were successful
CI Trade-In / changes (pull_request) Successful in 9s
CI Trade-In / backend-tests (pull_request) Has been skipped
CI / changes (pull_request) Successful in 10s
CI Trade-In / browser-tests (pull_request) Has been skipped
CI Trade-In / frontend-checks (pull_request) Has been skipped
CI / frontend-tests (pull_request) Has been skipped
CI / openapi-codegen-check (pull_request) Successful in 1m59s
CI / backend-tests (pull_request) Successful in 17m21s
All checks were successful
CI Trade-In / changes (pull_request) Successful in 9s
CI Trade-In / backend-tests (pull_request) Has been skipped
CI / changes (pull_request) Successful in 10s
CI Trade-In / browser-tests (pull_request) Has been skipped
CI Trade-In / frontend-checks (pull_request) Has been skipped
CI / frontend-tests (pull_request) Has been skipped
CI / openapi-codegen-check (pull_request) Successful in 1m59s
CI / backend-tests (pull_request) Successful in 17m21s
This commit is contained in:
parent
8945ea5d04
commit
6446a8cdf5
1 changed files with 1 additions and 1 deletions
|
|
@ -69,7 +69,7 @@ def _posix(path: Path) -> str:
|
|||
def _extract_notify(script: Path) -> str:
|
||||
"""Вырезать тело notify() из настоящего файла — от заголовка до `}` в нулевой колонке."""
|
||||
lines = script.read_text(encoding="utf-8").splitlines()
|
||||
start = next((i for i, l in enumerate(lines) if l.startswith("notify()")), None)
|
||||
start = next((i for i, ln in enumerate(lines) if ln.startswith("notify()")), None)
|
||||
assert start is not None, f"{script.name}: не нашёл notify() — отправитель переименован"
|
||||
end = next((i for i in range(start + 1, len(lines)) if lines[i] == "}"), None)
|
||||
assert end is not None, f"{script.name}: не нашёл конец notify()"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue