Skip to content

Commit ef72f87

Browse files
fix: Add noqa comment for intentional E402 in test_utils.py
The knowledge_utils import must come after sys.path modification, which is intentional. Add noqa comment to suppress E402 error.
1 parent 25f9e28 commit ef72f87

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/knowledge-tuning/test_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
utils_path = repo_root / "examples" / "knowledge-tuning" / "04_Knowledge_Mixing" / "utils"
1313
sys.path.insert(0, str(utils_path))
1414

15-
from knowledge_utils import (
15+
from knowledge_utils import ( # noqa: E402
1616
count_len_in_tokens,
1717
generate_knowledge_qa_dataset,
1818
get_avg_summaries_per_raw_doc,

0 commit comments

Comments
 (0)