Фиксация изменений

This commit is contained in:
2026-03-05 11:03:17 +03:00
parent 1ef0b4d68c
commit 417b8b6f72
261 changed files with 8215 additions and 332 deletions
@@ -0,0 +1,17 @@
from __future__ import annotations
import re
_TEST_NEG_RE = re.compile(
r"(?:не\s+про\s+тест|без\s+тест|кроме\s+тест|про\s+прод\s+код|только\s+прод|production\s+code)",
re.IGNORECASE,
)
class NegationDetector:
def detect(self, text: str) -> set[str]:
lowered = (text or "").lower()
negations: set[str] = set()
if _TEST_NEG_RE.search(lowered):
negations.add("tests")
return negations