Skip to content

Commit a2aae9b

Browse files
committed
Chore: Format code using Ruff 0.9
1 parent 4d47a26 commit a2aae9b

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

pyproject.toml

+7
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,13 @@ lint.per-file-ignores."tests/*" = [
7171
"S106", # Possible hardcoded password assigned to argument: "password"
7272
"S311", # Standard pseudo-random generators are not suitable for cryptographic purposes
7373
]
74+
lint.per-file-ignores."src/crate/client/{connection.py,http.py}" = [
75+
"A004", # Import `ConnectionError` is shadowing a Python builtin
76+
"A005", # Import `ConnectionError` is shadowing a Python builtin
77+
]
78+
lint.per-file-ignores."tests/client/test_http.py" = [
79+
"A004", # Import `ConnectionError` is shadowing a Python builtin
80+
]
7481

7582

7683
# ===================

src/crate/client/http.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@ def _drop_server(self, server, message):
670670
# if this is the last server raise exception, otherwise try next
671671
if not self._active_servers:
672672
raise ConnectionError(
673-
("No more Servers available, " "exception from last server: %s")
673+
("No more Servers available, exception from last server: %s")
674674
% message
675675
)
676676

0 commit comments

Comments
 (0)