style: привести код к ruff format (line-length 120)

Обнаружено на шаге 0: `ruff format --check .` НЕ был чистым в baseline
(24 файла расходились с форматом ruff). `ruff check .` был чистым.

Изменение только косметическое (переносы, пустая строка после docstring
модуля, склейка вызовов в пределах line-length=120 из [tool.ruff]);
поведение не меняется — pytest 81/81 зелёные, `ruff check .` — без ошибок.

Нужно, чтобы `ruff format --check .` стал рабочим гейтом (D13 CI).
This commit is contained in:
oqyude committed 2026-10-25 05:17:27 +03:00
1 parent 9b53b25a91
commit af01efc41a
24 files changed
+219 -160

No files matched your search

+16 -8
View File
@@ -25,24 +25,32 @@ def sample_model() -> FinancialModel:
],
transactions=[
Transaction(
date="2026-01-01", account=str(acc_id),
category="income", amount=3000.0,
date="2026-01-01",
account=str(acc_id),
category="income",
amount=3000.0,
description="Зарплата",
),
Transaction(
date="2026-01-05", account=str(acc_id),
category="rent", amount=-1200.0,
date="2026-01-05",
account=str(acc_id),
category="rent",
amount=-1200.0,
description="Аренда",
),
],
recurring=[
RecurringCashflow(
start_date="2026-01-01", frequency="monthly",
amount=500.0, category="income",
start_date="2026-01-01",
frequency="monthly",
amount=500.0,
category="income",
),
RecurringCashflow(
start_date="2026-01-01", frequency="monthly",
amount=-200.0, category="subscription",
start_date="2026-01-01",
frequency="monthly",
amount=-200.0,
category="subscription",
),
],
assets=[