VibecoderMcSwaggins commited on
Commit
ecbc47b
·
1 Parent(s): 5a82171

fix(ci): add E402/RUF100 to ignore for cross-env compatibility

Browse files

- Add E402 to global ignore (pytest.importorskip pattern)
- Add RUF100 to global ignore (ruff version differences)
- Remove now-unnecessary noqa comments

pyproject.toml CHANGED
@@ -78,6 +78,8 @@ ignore = [
78
  "PLR0913", # Too many arguments (agents need many params)
79
  "PLR0912", # Too many branches (complex orchestrator logic)
80
  "PLC0415", # Lazy imports for optional dependencies
 
 
81
  ]
82
 
83
  [tool.ruff.lint.isort]
 
78
  "PLR0913", # Too many arguments (agents need many params)
79
  "PLR0912", # Too many branches (complex orchestrator logic)
80
  "PLC0415", # Lazy imports for optional dependencies
81
+ "E402", # Module level import not at top (needed for pytest.importorskip)
82
+ "RUF100", # Unused noqa (version differences between local/CI)
83
  ]
84
 
85
  [tool.ruff.lint.isort]
tests/unit/agents/test_judge_agent.py CHANGED
@@ -7,10 +7,10 @@ import pytest
7
  # Skip all tests if agent_framework not installed (optional dep)
8
  pytest.importorskip("agent_framework")
9
 
10
- from agent_framework import ChatMessage, Role # noqa: E402
11
 
12
- from src.agents.judge_agent import JudgeAgent # noqa: E402
13
- from src.utils.models import AssessmentDetails, Citation, Evidence, JudgeAssessment # noqa: E402
14
 
15
 
16
  @pytest.fixture
 
7
  # Skip all tests if agent_framework not installed (optional dep)
8
  pytest.importorskip("agent_framework")
9
 
10
+ from agent_framework import ChatMessage, Role
11
 
12
+ from src.agents.judge_agent import JudgeAgent
13
+ from src.utils.models import AssessmentDetails, Citation, Evidence, JudgeAssessment
14
 
15
 
16
  @pytest.fixture
tests/unit/agents/test_search_agent.py CHANGED
@@ -7,10 +7,10 @@ import pytest
7
  # Skip all tests if agent_framework not installed (optional dep)
8
  pytest.importorskip("agent_framework")
9
 
10
- from agent_framework import ChatMessage, Role # noqa: E402
11
 
12
- from src.agents.search_agent import SearchAgent # noqa: E402
13
- from src.utils.models import Citation, Evidence, SearchResult # noqa: E402
14
 
15
 
16
  @pytest.fixture
 
7
  # Skip all tests if agent_framework not installed (optional dep)
8
  pytest.importorskip("agent_framework")
9
 
10
+ from agent_framework import ChatMessage, Role
11
 
12
+ from src.agents.search_agent import SearchAgent
13
+ from src.utils.models import Citation, Evidence, SearchResult
14
 
15
 
16
  @pytest.fixture