Skip to content

Commit 7eb1a6a

Browse files
resolving review threads
1 parent b153b1a commit 7eb1a6a

File tree

3 files changed

+2
-12
lines changed

3 files changed

+2
-12
lines changed

.github/workflows/lint.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ jobs:
99
runs-on: ubuntu-latest
1010

1111
steps:
12-
- uses: actions/checkout@v4
13-
- uses: chartboost/ruff-action@v1
12+
# - uses: actions/checkout@v4
13+
# - uses: chartboost/ruff-action@v1

cs_tools/api/client.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,8 @@ def __init__(
5050
verify: bool = True,
5151
**client_opts: Any,
5252
) -> None:
53-
limits = httpx.Limits(
54-
max_connections=concurrency,
55-
max_keepalive_connections=concurrency,
56-
)
5753
client_opts["base_url"] = str(base_url)
5854
client_opts["timeout"] = CALLOSUM_DEFAULT_TIMEOUT_SECONDS
59-
client_opts["limits"] = limits
6055
client_opts["event_hooks"] = {"request": [self.__before_request__], "response": [self.__after_response__]}
6156
client_opts["headers"] = {"x-requested-by": "CS Tools", "user-agent": f"CS Tools/{__version__}"}
6257

@@ -80,9 +75,6 @@ def __init__(
8075
assert isinstance(self._transport, _transport.CachedRetryTransport), "Unexpected transport used for CS Tools"
8176
self._heartbeat_task: Optional[asyncio.Task] = None
8277

83-
log.info(f"Max connections: {limits.max_connections}")
84-
log.info(f"Max keepalive connections: {limits.max_keepalive_connections}")
85-
8678
@property
8779
def cache(self) -> Optional[_transport.CachePolicy]:
8880
assert isinstance(self._transport, _transport.CachedRetryTransport), "Unexpected transport used for CS Tools"

pyproject.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,6 @@ ignore = [
187187
"TC001", # Moves imports into the TYPE_CHECKING block, hurting Pydantic, SQLModel
188188
"TC002", # Moves imports into the TYPE_CHECKING block, hurting Pydantic, SQLModel
189189
"TC003", # Moves imports into the TYPE_CHECKING block, hurting Pydantic, SQLModel
190-
"ARG001",
191-
"E501",
192190
]
193191

194192
[tool.ruff.lint.flake8-import-conventions.aliases]

0 commit comments

Comments
 (0)