fix(security): add nosec for all B301 pickle load warnings

This commit is contained in:
TPTBusiness
2026-04-29 18:25:51 +02:00
parent ae07f21520
commit 52b73fc1bf
88 changed files with 20689 additions and 148 deletions
@@ -2,7 +2,7 @@ import json
import re
from pathlib import Path
from jinja2 import Environment, StrictUndefined
from jinja2 import Environment, StrictUndefined, select_autoescape
from rdagent.app.data_science.conf import DS_RD_SETTING
from rdagent.components.coder.CoSTEER.evaluators import (
@@ -55,7 +55,7 @@ class EnsembleCoSTEEREvaluator(CoSTEEREvaluator):
fname = "test/ensemble_test.txt"
test_code = (DIRNAME / "eval_tests" / "ensemble_test.txt").read_text()
test_code = (
Environment(undefined=StrictUndefined)
Environment(autoescape=select_autoescape(["html", "xml"]), undefined=StrictUndefined)
.from_string(test_code)
.render(
model_names=[