more linting fixes

This commit is contained in:
SwiftyOS
2024-09-20 12:24:55 +02:00
parent 2582eb1ee8
commit 46cc8ae3ea
4 changed files with 8 additions and 6 deletions

View File

@@ -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

View File

@@ -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(

View File

@@ -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):

View File

@@ -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!",