D2: починить lint-гейт — ruff check . проходит
Было: `ruff check .` → 10 ошибок, CI-гейт на ruff был бы красным сразу. - 9× I001 (порядок импортов) — application/forecast.py:1, application/scenarios.py:1, domain/currency.py:1, infrastructure/ai/assistant.py:1, infrastructure/cli/app.py:11, infrastructure/cli/commands/init.py:2, infrastructure/cli/services.py:2, tests/test_model.py:1, tests/test_repositories.py:1 - 1× E501 — infrastructure/cli/services.py:30, сигнатура build_services перенесена на три строки Поведение не меняется: переупорядочены только импорты, убраны пустые строки, перенесена длинная сигнатура. Порядок импорта в app.py не влияет на момент вызова setup_i18n() — он по-прежнему после импорта команд. Проверка: 75/75 тестов зелёные, ruff check . — All checks passed.
This commit is contained in:
1 parent
971693d77a
commit
8af1d9a010
9 files changed
+11
-11
No files matched your search
@@ -1,5 +1,5 @@
|
||||
from copy import deepcopy
|
||||
from decimal import Decimal, ROUND_HALF_UP
|
||||
from decimal import ROUND_HALF_UP, Decimal
|
||||
|
||||
from domain import Account, FinancialModel
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
from copy import deepcopy
|
||||
from decimal import Decimal
|
||||
|
||||
from domain import FinancialModel, ForecastScenario
|
||||
from application.forecast import ForecastService
|
||||
from domain import FinancialModel, ForecastScenario
|
||||
|
||||
|
||||
class ScenarioError(Exception):
|
||||
|
||||
Reference in new issue
Block a user