Skip to content

Commit 6bb2750

Browse files
committed
Fix lint
1 parent ac3eddc commit 6bb2750

File tree

7 files changed

+10
-11
lines changed

7 files changed

+10
-11
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
sources = coagent tests
1+
sources = coagent tests examples
22

33
.PHONY: .uv ## Check that uv is installed
44
.uv:

coagent/runtimes/http_runtime.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ async def _poll(self) -> None:
223223
# Send the error as a message.
224224
await self._handler(exc.encode_message().encode())
225225
break
226-
except asyncio.CancelledError as exc:
226+
except asyncio.CancelledError:
227227
# User cancelled, close the client and exit.
228228
await client.aclose()
229229
# TODO: We use break here since using raise doesn't work as expected.

examples/opencsg/csghub.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class CSGHub(ChatAgent):
2929
async def search_model(
3030
self,
3131
name: str = Field(description="The name of the model"),
32-
language: Language = Field(description="The language that the model supports"),
32+
language: Language = Field(description="The language that the model supports"), # noqa: B008
3333
limit: int = Field(
3434
default=10, description="The maximum number of models to return"
3535
),

examples/ping-pong/http_runtime_server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import os
1+
import os # noqa: F401
22
from typing import AsyncIterator
33

44
from starlette.applications import Starlette
@@ -8,7 +8,7 @@
88

99
from coagent.core import Address, RawMessage
1010
from coagent.core.exceptions import BaseError
11-
from coagent.runtimes import HTTPChannelBackend, LocalChannel, NATSChannel
11+
from coagent.runtimes import HTTPChannelBackend, LocalChannel, NATSChannel # noqa: F401
1212

1313

1414
# NATS_URL = os.getenv("NATS_URL", "nats://localhost:4222")

examples/rich_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
from coagent.core import Address, set_stderr_logger
1010
from coagent.runtimes import NATSRuntime, HTTPRuntime
1111

12-
from textual import on, work
12+
from textual import on, work # noqa: F401
1313
from textual.app import App, ComposeResult
1414
from textual.widgets import Header, Input, Footer, Markdown, Button
15-
from textual.containers import Horizontal, VerticalScroll
15+
from textual.containers import Horizontal, VerticalScroll # noqa: F401
1616

1717

1818
class Bot:

examples/rich_client_textarea.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
from coagent.core import Address, set_stderr_logger
88
from coagent.runtimes import NATSRuntime, HTTPRuntime
99

10-
from textual import on, work
10+
from textual import on, work # noqa: F401
1111
from textual.app import App, ComposeResult
1212
from textual.widgets import Header, Input, Footer, Markdown, Button, TextArea
13-
from textual.containers import Horizontal, VerticalScroll
13+
from textual.containers import Horizontal, VerticalScroll # noqa: F401
1414
from typing import List, Union, AsyncIterator
15-
from textual import events
15+
from textual import events # noqa: F401
1616

1717

1818
class Bot:

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ ignore = [
6060
'B904',
6161
'C408',
6262
'E501',
63-
'F841',
6463
]
6564

6665
[tool.poetry.scripts]

0 commit comments

Comments
 (0)