Skip to content

Commit 2a9f811

Browse files
author
Yifu Cai
committed
fix linting
1 parent 176bc8d commit 2a9f811

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

aide/backend/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import logging
44

5-
from nbformat import current
65
from . import backend_anthropic, backend_openai, backend_openrouter, backend_gdm
76
from .utils import FunctionSpec, OutputType, PromptType, compile_prompt_to_md
87

@@ -149,7 +148,7 @@ def query(
149148
**model_kwargs,
150149
)
151150
logger.info(f"response: {output}", extra={"verbose": True})
152-
logger.info(f"---Query complete---", extra={"verbose": True})
151+
logger.info("---Query complete---", extra={"verbose": True})
153152
if token_counter is not None:
154153
token_counter.add_tokens(model, input_tokens=in_tok_count, output_tokens=out_tok_count)
155154

aide/backend/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
import jsonschema
66
from dataclasses_json import DataClassJsonMixin
77

8+
import backoff
9+
810
PromptType = str | dict | list
911
FunctionCallType = dict
1012
OutputType = str | FunctionCallType
1113

12-
import backoff
13-
1414
logger = logging.getLogger("aide")
1515

1616

aide/utils/config.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
from omegaconf import OmegaConf
1111
from rich.syntax import Syntax
1212
import shutup
13-
from rich.logging import RichHandler
1413
import logging
1514

1615
from aide.journal import Journal, filter_journal
@@ -240,4 +239,4 @@ def output_file_or_placeholder(file: Path):
240239
else:
241240
return json.dumps(json.loads(file.read_text()), indent=4)
242241
else:
243-
return f"File not found."
242+
return "File not found."

0 commit comments

Comments
 (0)