Skip to content

Commit 16dce11

Browse files
committed
lint
1 parent f84be60 commit 16dce11

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

openevolve/config.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,9 @@ def from_dict(cls, config_dict: Dict[str, Any]) -> "Config":
234234
if "models" in llm_dict:
235235
llm_dict["models"] = [LLMModelConfig(**m) for m in llm_dict["models"]]
236236
if "evaluator_models" in llm_dict:
237-
llm_dict["evaluator_models"] = [LLMModelConfig(**m) for m in llm_dict["evaluator_models"]]
237+
llm_dict["evaluator_models"] = [
238+
LLMModelConfig(**m) for m in llm_dict["evaluator_models"]
239+
]
238240
config.llm = LLMConfig(**llm_dict)
239241
if "prompt" in config_dict:
240242
config.prompt = PromptConfig(**config_dict["prompt"])

tests/test_valid_configs.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
from openevolve.config import Config, load_config
1010

11+
1112
class TestConfigValidity(unittest.TestCase):
1213
"""Tests that all config files in the configs/ and examples/ directories are valid"""
1314

@@ -28,7 +29,10 @@ def test_import_config_files(self):
2829
for config_file in config_files:
2930
print(f"Testing config file: {config_file}")
3031
config = load_config(config_file)
31-
self.assertIsInstance(config, Config, f"Config file {config_file} did not load correctly")
32+
self.assertIsInstance(
33+
config, Config, f"Config file {config_file} did not load correctly"
34+
)
35+
3236

3337
if __name__ == "__main__":
3438
unittest.main()

0 commit comments

Comments
 (0)