Skip to content

Commit

Permalink
Merge pull request #715 from jazzband/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
WisdomPill authored Jan 22, 2024
2 parents d94a7f9 + dafaad2 commit 56d3ef1
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion django_redis/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion django_redis/client/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion django_redis/client/herd.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def _unpack(self, value):

return unpacked, False

def set( # noqa: A003
def set(
self,
key,
value,
Expand Down
2 changes: 1 addition & 1 deletion django_redis/client/sharded.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 56d3ef1

Please sign in to comment.