🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
fix(evals): stop flagging E402 on imports in Python code evaluators (#14775)
Tobias Wochingerf6c0aca19ee5
diff --git a/web/src/features/evals/utils/code-eval-template-validation.ts b/web/src/features/evals/utils/code-eval-template-validation.tsindex 1bc803b158..0710d85c5b 100644--- a/web/src/features/evals/utils/code-eval-template-validation.ts+++ b/web/src/features/evals/utils/code-eval-template-validation.ts@@ -579,6 +579,10 @@ const PYTHON_RUFF_SETTINGS = {"indent-width": 2,lint: {select: ["E4", "E7", "E9", "F"],+ // The contract is prepended to the user's source before linting (and at+ // execution time), so user imports are never at the literal top of the+ // file — E402 would flag every import.+ ignore: ["E402"],},};const PYTHON_ERROR_DIAGNOSTIC_CODES = new Set([