From 1aa731e0a5e59a9f6fb6d318c09da7ace465fdcf Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 13 Jan 2025 14:47:42 +0000 Subject: [PATCH 1/2] Chore(deps-dev): Update ruff requirement from <0.8 to <0.10 Updates the requirements on [ruff](https://github.com/astral-sh/ruff) to permit the latest version. - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](https://github.com/astral-sh/ruff/compare/v0.0.18...0.9.1) --- updated-dependencies: - dependency-name: ruff dependency-type: direct:development ... Signed-off-by: dependabot[bot] --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index e842cc03..4da8be94 100644 --- a/setup.py +++ b/setup.py @@ -68,7 +68,7 @@ def read(path): "createcoverage>=1,<2", "mypy<1.15", "poethepoet<0.33", - "ruff<0.8", + "ruff<0.10", "stopit>=1.1.2,<2", "tox>=3,<5", "pytz", From dd2ddc2852bff874de41dca059d624c53bd76e03 Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Wed, 15 Jan 2025 22:54:21 +0100 Subject: [PATCH 2/2] Chore: Format code using Ruff 0.9 --- pyproject.toml | 7 +++++++ src/crate/client/http.py | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 31717680..08b0d321 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 +] # =================== diff --git a/src/crate/client/http.py b/src/crate/client/http.py index d9a0598f..e2c164d9 100644 --- a/src/crate/client/http.py +++ b/src/crate/client/http.py @@ -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 )