Skip to content

Commit

Permalink
Chore: Format code using Ruff 0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Jan 15, 2025
1 parent 4d47a26 commit a2aae9b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,13 @@ lint.per-file-ignores."tests/*" = [
"S106", # Possible hardcoded password assigned to argument: "password"
"S311", # Standard pseudo-random generators are not suitable for cryptographic purposes
]
lint.per-file-ignores."src/crate/client/{connection.py,http.py}" = [
"A004", # Import `ConnectionError` is shadowing a Python builtin
"A005", # Import `ConnectionError` is shadowing a Python builtin
]
lint.per-file-ignores."tests/client/test_http.py" = [
"A004", # Import `ConnectionError` is shadowing a Python builtin
]


# ===================
Expand Down
2 changes: 1 addition & 1 deletion src/crate/client/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ def _drop_server(self, server, message):
# if this is the last server raise exception, otherwise try next
if not self._active_servers:
raise ConnectionError(
("No more Servers available, " "exception from last server: %s")
("No more Servers available, exception from last server: %s")
% message
)

Expand Down

0 comments on commit a2aae9b

Please sign in to comment.