CI: ruff format --check — три файла приведены к формату ruff 0.17.2
Гейт `ruff format --check .` в .github/workflows/ci.yml был красным на dev до слияния веток: application/forecast.py, tests/test_excel_authoring.py, tests/test_forecast.py — разница только в раскладке выражений по строкам (ruff 0.17.2 переносит длинные однострочные списки в одну строку при line-length = 120). Изменение чисто форматное: 354 теста зелёные до и после, ruff check чистый.
This commit is contained in:
1 parent
f2bcb07554
commit
cfdbaaba06
3 files changed
+7
-27
No files matched your search
@@ -82,9 +82,7 @@ class TestTemplate:
|
||||
wb = load_workbook(path)
|
||||
try:
|
||||
ws = wb["Инструкция"]
|
||||
text = "\n".join(
|
||||
str(cell.value) for row in ws.iter_rows() for cell in row if cell.value is not None
|
||||
)
|
||||
text = "\n".join(str(cell.value) for row in ws.iter_rows() for cell in row if cell.value is not None)
|
||||
assert "Порядок работы" in text
|
||||
assert "Счёт" in text
|
||||
assert "Периодичность" in text
|
||||
@@ -349,9 +347,7 @@ class TestExportIsEditable:
|
||||
|
||||
model = FinancialModel(
|
||||
accounts=[Account(name="Доллары", currency="USD", balance=Decimal("100"))],
|
||||
transactions=[
|
||||
Transaction(date="2026-01-01", account="Доллары", amount=Decimal("5"), currency="EUR")
|
||||
],
|
||||
transactions=[Transaction(date="2026-01-01", account="Доллары", amount=Decimal("5"), currency="EUR")],
|
||||
)
|
||||
path = tmp_path / "currencies.xlsx"
|
||||
ExcelRepository().save(model, path)
|
||||
|
||||
Reference in new issue
Block a user