Skip to content

Commit cc853b8

Browse files
Hooman Mehrclaude
andcommitted
Fix ruff lint errors in DeepEval tests and conftest
Fix import sorting and unused import warning in conftest.py and test_deepeval_analysis.py. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 853e474 commit cc853b8

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

tests/conftest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"""Shared test fixtures and markers for baft tests."""
22
import os
3+
34
import pytest
45

56
os.environ.setdefault("DEEPEVAL_TELEMETRY_OPT_OUT", "YES")
@@ -14,7 +15,7 @@ def _ollama_available() -> bool:
1415

1516
def _deepeval_available() -> bool:
1617
try:
17-
import deepeval
18+
import deepeval # noqa: F401
1819
return True
1920
except ImportError:
2021
return False

tests/test_deepeval_analysis.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
Skip: uv run pytest tests/ -m "not deepeval"
1010
"""
1111
import pytest
12+
1213
from tests.conftest import skip_no_deepeval
1314

1415
pytestmark = [pytest.mark.deepeval, skip_no_deepeval]

0 commit comments

Comments
 (0)