From 19337c6d0459785a4f4bbb01c1eb7bcbbf2681e6 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 15 Jan 2024 17:24:25 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.1.9 → v0.1.13](https://github.com/astral-sh/ruff-pre-commit/compare/v0.1.9...v0.1.13) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ba89982f..7c3ac099 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,7 +12,7 @@ repos: # from readme - ruff with autofix must run before # other formatters, such as black - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.1.9 + rev: v0.1.13 hooks: - id: ruff args: [ --fix, --exit-non-zero-on-fix , --show-fixes] From dafaad2345b4a3a91f82fe0dadb5d0761545c564 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 15 Jan 2024 17:24:32 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- django_redis/cache.py | 2 +- django_redis/client/default.py | 2 +- django_redis/client/herd.py | 2 +- django_redis/client/sharded.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/django_redis/cache.py b/django_redis/cache.py index 732ca9df..57cc7e43 100644 --- a/django_redis/cache.py +++ b/django_redis/cache.py @@ -77,7 +77,7 @@ def client(self): return self._client @omit_exception - def set(self, *args, **kwargs): # noqa: A003 + def set(self, *args, **kwargs): return self.client.set(*args, **kwargs) @omit_exception diff --git a/django_redis/client/default.py b/django_redis/client/default.py index 9485627f..69ff0df4 100644 --- a/django_redis/client/default.py +++ b/django_redis/client/default.py @@ -144,7 +144,7 @@ def disconnect(self, index: int = 0, client: Optional[Redis] = None) -> None: if client is not None: self.connection_factory.disconnect(client) - def set( # noqa: A003 + def set( self, key: KeyT, value: EncodableT, diff --git a/django_redis/client/herd.py b/django_redis/client/herd.py index 70cb0459..94d539cd 100644 --- a/django_redis/client/herd.py +++ b/django_redis/client/herd.py @@ -57,7 +57,7 @@ def _unpack(self, value): return unpacked, False - def set( # noqa: A003 + def set( self, key, value, diff --git a/django_redis/client/sharded.py b/django_redis/client/sharded.py index 7a0fb0f4..dbb1d200 100644 --- a/django_redis/client/sharded.py +++ b/django_redis/client/sharded.py @@ -78,7 +78,7 @@ def get_many(self, keys, version=None): recovered_data[map_keys[key]] = value return recovered_data - def set( # noqa: A003 + def set( self, key, value,