mirror of
https://github.com/NicolasBohn/NexQuant.git
synced 2026-08-03 10:27:42 +00:00
CI tool refinement (#13)
* adjust interact and log for CI fix tool * change method to split large code files * refine statistics table after fixing one file * process default --fix option when ruff check * remove hardcode path * add tree-sitter requirements * replace <| |> to < > in comments, for GPT * update mypy version * Add Mypy Evaluator
This commit is contained in:
@@ -262,11 +262,7 @@ class FactorImplementationEvolvingCli:
|
||||
print([feedback.final_decision if feedback is not None else None for feedback in feedbacks].count(True))
|
||||
|
||||
def implement_amc(
|
||||
self,
|
||||
evo_sub_path_str,
|
||||
former_knowledge_base_path_str,
|
||||
implementation_dump_path_str,
|
||||
slice_index,
|
||||
self, evo_sub_path_str, former_knowledge_base_path_str, implementation_dump_path_str, slice_index,
|
||||
):
|
||||
factor_implementations: FactorImplementationList = pickle.load(open(evo_sub_path_str, "rb"))
|
||||
factor_implementations.target_factor_tasks = factor_implementations.target_factor_tasks[
|
||||
|
||||
@@ -10,7 +10,7 @@ from factor_implementation.share_modules.factor import (
|
||||
from factor_implementation.share_modules.prompt import FactorImplementationPrompts
|
||||
from finco.log import FinCoLog
|
||||
from jinja2 import Template
|
||||
from oai.llm_utils import APIBackend
|
||||
from rdagent.oai.llm_utils import APIBackend
|
||||
|
||||
from rdagent.factor_implementation.share_modules.factor_implementation_config import (
|
||||
FactorImplementSettings,
|
||||
|
||||
@@ -124,8 +124,7 @@ class FileBasedFactorImplementation(FactorImplementation):
|
||||
raise ValueError(self.FB_CODE_NOT_SET)
|
||||
with FileLock(self.workspace_path / "execution.lock"):
|
||||
(Path.cwd() / "git_ignore_folder" / "factor_implementation_execution_cache").mkdir(
|
||||
exist_ok=True,
|
||||
parents=True,
|
||||
exist_ok=True, parents=True,
|
||||
)
|
||||
if FactorImplementSettings().enable_execution_cache:
|
||||
# NOTE: cache the result for the same code
|
||||
|
||||
Reference in New Issue
Block a user