Skip to content

Commit f94d500

Browse files
authored
chore: remove all ignored lint rules (#542)
1 parent dc3945b commit f94d500

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
@@ -252,7 +252,7 @@ async def _remove_cached(self, instance_uri: str) -> None:
252252
cache = self._cache.pop(instance_uri)
253253
await cache.close()
254254

255-
async def __aenter__(self) -> Any:
255+
async def __aenter__(self) -> AsyncConnector:
256256
"""Enter async context manager by returning Connector object"""
257257
return self
258258

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)