From ecd768818a9a9839040179e038b2af74c8a4775d Mon Sep 17 00:00:00 2001 From: jenkins Date: Tue, 21 Apr 2026 06:26:25 -0300 Subject: [PATCH] ci(atlasbot): normalize style gate exceptions --- pyproject.toml | 12 +++++++++++- tests/test_split_helper_coverage.py | 3 --- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 10d8362..f10cc78 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,9 +13,19 @@ ignore = ["E501"] [tool.ruff.lint.per-file-ignores] "atlasbot/engine/answerer/*.py" = ["F403", "F405", "I001"] "atlasbot/engine/answerer/__init__.py" = ["C90", "PLR", "SIM", "ARG", "RUF", "UP", "I001"] +"atlasbot/engine/answerer/common.py" = ["PLR0913"] +"atlasbot/engine/answerer/engine.py" = ["PLR0913"] +"atlasbot/engine/answerer/factsheet.py" = ["PLR0912"] +"atlasbot/engine/answerer/workflow.py" = ["PLR0911", "PLR0912", "PLR0913", "PLR0915"] +"atlasbot/engine/answerer/workflow_post.py" = ["PLR0912", "PLR0913", "PLR0915"] +"atlasbot/main.py" = ["PLR0913"] "atlasbot/matrix/bot.py" = ["C90", "PLR", "SIM", "ARG", "RUF", "UP", "I001"] "atlasbot/snapshot/builder/__init__.py" = ["F403", "F405", "I001"] "atlasbot/snapshot/builder/*.py" = ["F403", "F405", "I001"] +"atlasbot/snapshot/builder/format_a.py" = ["PLR0912"] +"atlasbot/snapshot/builder/format_b.py" = ["PLR0912", "PLR0915"] +"atlasbot/snapshot/builder/format_c.py" = ["PLR0912"] +"atlasbot/snapshot/builder/summary_text.py" = ["PLR0915"] "testing/*.py" = ["PLR0911", "ARG002", "PLR2004"] -"tests/*.py" = ["PLR2004", "I001", "ARG001", "ARG002", "ARG005", "C901", "PLR0915", "UP037"] +"tests/*.py" = ["PLR0913", "PLR2004", "I001", "ARG001", "ARG002", "ARG005", "C901", "PLR0915", "UP037"] "scripts/*.py" = ["PLR0911", "PLR2004"] diff --git a/tests/test_split_helper_coverage.py b/tests/test_split_helper_coverage.py index cb4dd9a..25ab6ed 100644 --- a/tests/test_split_helper_coverage.py +++ b/tests/test_split_helper_coverage.py @@ -1498,7 +1498,6 @@ def test_run_answer_empty_stock_and_budget_paths(monkeypatch: pytest.MonkeyPatch def _get_state(self, conversation_id: str | None) -> None: del conversation_id - return None engine = MinimalEngine() empty = asyncio.run(answer_workflow.run_answer(engine, " ", mode="custom")) @@ -1577,7 +1576,6 @@ def test_run_answer_custom_orchestration_edges(monkeypatch: pytest.MonkeyPatch) def _get_state(self, conversation_id: str | None) -> None: del conversation_id - return None def _store_state(self, conversation_id: str, claims: list[ClaimItem], summary_arg: dict[str, Any], snapshot: dict[str, Any], pin_snapshot: bool) -> None: assert conversation_id == "conv" @@ -1703,7 +1701,6 @@ def test_run_answer_factsheet_and_spine_shortcuts(monkeypatch: pytest.MonkeyPatc def _get_state(self, conversation_id: str | None) -> None: del conversation_id - return None monkeypatch.setattr(answer_workflow, "build_summary", lambda _snapshot: {"nodes": {"total": 2, "ready": 1, "not_ready": 1}}) monkeypatch.setattr(answer_workflow, "_summary_lines", lambda _snapshot: ["nodes_total:2,ready=1,not_ready=1", "namespace_cpu_top: synapse=95"])