Skip to content

Commit 7f26ecf

Browse files
committed
chore: remove all ignored lint rules
1 parent 19eef18 commit 7f26ecf

3 files changed

Lines changed: 4 additions & 7 deletions

File tree

google/cloud/alloydbconnector/async_connector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ async def _remove_cached(self, instance_uri: str) -> None:
247247
cache = self._cache.pop(instance_uri)
248248
await cache.close()
249249

250-
async def __aenter__(self) -> Any:
250+
async def __aenter__(self) -> AsyncConnector:
251251
"""Enter async context manager by returning Connector object"""
252252
return self
253253

google/cloud/alloydbconnector/psycopg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def _proxy(local: socket.socket, remote: "ssl.SSLSocket") -> None:
4343
remote: The SSL socket connected to the AlloyDB proxy server.
4444
"""
4545

46-
def forward(src: Any, dst: Any) -> None:
46+
def forward(src: socket.socket, dst: socket.socket) -> None:
4747
buf = bytearray(_CHUNK_SIZE)
4848
view = memoryview(buf)
4949
try:

pyproject.toml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,8 @@ select = [
115115
"ANN", # flake8-annotations
116116
]
117117
ignore = [
118-
"E203",
119-
"E231",
120-
"E266",
121-
"E501",
122-
"ANN401",
118+
"ANN401", # Any is needed for pass-through **kwargs
119+
"E501", # line too long — enforced by ruff format
123120
]
124121

125122
[tool.ruff.lint.per-file-ignores]

0 commit comments

Comments
 (0)