diff --git a/backend/app/main.py b/backend/app/main.py index b8d23101..bfdfd360 100644 --- a/backend/app/main.py +++ b/backend/app/main.py @@ -1,5 +1,5 @@ +from collections.abc import AsyncIterator from contextlib import asynccontextmanager -from typing import AsyncIterator import sentry_sdk from fastapi import FastAPI diff --git a/backend/app/services/generative/geometry.py b/backend/app/services/generative/geometry.py index 06881dab..26fa92ad 100644 --- a/backend/app/services/generative/geometry.py +++ b/backend/app/services/generative/geometry.py @@ -5,7 +5,7 @@ Stage 1b: greedy filling of rectangular MKD with 3 strategies. STRtree for colli Performance target: <=10s per variant; fallback acceptance 15s. """ -from app.schemas.concept import ConceptInput, ConceptVariant, FinancialModel, TEAP +from app.schemas.concept import TEAP, ConceptInput, ConceptVariant, FinancialModel def generate_stub(payload: ConceptInput) -> list[ConceptVariant]: diff --git a/backend/pyproject.toml b/backend/pyproject.toml index fc6ba7b8..e299b6b2 100644 --- a/backend/pyproject.toml +++ b/backend/pyproject.toml @@ -45,6 +45,9 @@ line-length = 100 [tool.ruff.lint] select = ["E", "F", "I", "B", "UP", "N", "RUF", "ASYNC"] +# RUF001/002/003 — ambiguous Unicode (Cyrillic vs Latin lookalikes). +# Off because the project is Russian-language; comments/docstrings legitimately use Cyrillic. +ignore = ["RUF001", "RUF002", "RUF003"] [tool.mypy] python_version = "3.12"