mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-01-10 07:38:04 -05:00
more linting fixes
This commit is contained in:
@@ -23,7 +23,7 @@ repos:
|
||||
|
||||
- id: isort-forge
|
||||
name: Lint (isort) - Forge
|
||||
entry: poetry -C forge run isort
|
||||
entry: poetry -C forge run isortIts
|
||||
files: ^classic/forge/
|
||||
types: [file, python]
|
||||
language: system
|
||||
@@ -5,7 +5,6 @@ import matplotlib.patches as mpatches
|
||||
import matplotlib.pyplot as plt
|
||||
import numpy as np
|
||||
import pandas as pd
|
||||
from matplotlib.colors import Normalize
|
||||
|
||||
|
||||
def save_combined_radar_chart(
|
||||
|
||||
@@ -294,7 +294,8 @@ def benchmark_categories_list():
|
||||
this_dir = os.path.dirname(os.path.abspath(__file__))
|
||||
|
||||
glob_path = os.path.join(
|
||||
this_dir, "./classic/benchmark/agclassic/benchmark/challenges/**/[!deprecated]*/data.json"
|
||||
this_dir,
|
||||
"./classic/benchmark/agclassic/benchmark/challenges/**/[!deprecated]*/data.json",
|
||||
)
|
||||
# Use it as the base for the glob pattern, excluding 'deprecated' directory
|
||||
for data_file in glob.glob(glob_path, recursive=True):
|
||||
@@ -338,7 +339,8 @@ def benchmark_tests_list():
|
||||
this_dir = os.path.dirname(os.path.abspath(__file__))
|
||||
|
||||
glob_path = os.path.join(
|
||||
this_dir, "./classic/benchmark/agclassic/benchmark/challenges/**/[!deprecated]*/data.json"
|
||||
this_dir,
|
||||
"./classic/benchmark/agclassic/benchmark/challenges/**/[!deprecated]*/data.json",
|
||||
)
|
||||
# Use it as the base for the glob pattern, excluding 'deprecated' directory
|
||||
for data_file in glob.glob(glob_path, recursive=True):
|
||||
@@ -388,7 +390,8 @@ def benchmark_tests_details(test_name):
|
||||
this_dir = os.path.dirname(os.path.abspath(__file__))
|
||||
|
||||
glob_path = os.path.join(
|
||||
this_dir, "./classic/benchmark/agclassic/benchmark/challenges/**/[!deprecated]*/data.json"
|
||||
this_dir,
|
||||
"./classic/benchmark/agclassic/benchmark/challenges/**/[!deprecated]*/data.json",
|
||||
)
|
||||
# Use it as the base for the glob pattern, excluding 'deprecated' directory
|
||||
for data_file in glob.glob(glob_path, recursive=True):
|
||||
|
||||
@@ -172,7 +172,7 @@ class ForgeAgent(ProtocolAgent, BaseAgent):
|
||||
|
||||
# Call the LLM and parse result
|
||||
# THIS NEEDS TO BE REPLACED WITH YOUR LLM CALL/LOGIC
|
||||
# Have a look at classic/original_autogpt/agents/agent.py
|
||||
# Have a look at classic/original_autogpt/agents/agent.py
|
||||
# for an example (complete_and_parse)
|
||||
proposal = ActionProposal(
|
||||
thoughts="I cannot solve the task!",
|
||||
|
||||
Reference in New Issue
Block a user