Skip to content

Commit 651d197

Browse files
authored
Merge pull request #632 from jazzband/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2 parents 9d572cd + 36b76cc commit 651d197

File tree

5 files changed

+5
-11
lines changed

5 files changed

+5
-11
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.3.0
3+
rev: v4.4.0
44
hooks:
55
- id: check-ast
66
- id: check-case-conflict
@@ -10,21 +10,21 @@ repos:
1010
- id: debug-statements
1111

1212
- repo: https://github.com/asottile/pyupgrade
13-
rev: v3.2.0
13+
rev: v3.3.1
1414
hooks:
1515
- id: pyupgrade
1616

1717
- repo: https://github.com/psf/black
18-
rev: 22.10.0
18+
rev: 23.1.0
1919
hooks:
2020
- id: black
2121

2222
- repo: https://github.com/PyCQA/flake8
23-
rev: 5.0.4
23+
rev: 6.0.0
2424
hooks:
2525
- id: flake8
2626

2727
- repo: https://github.com/PyCQA/isort
28-
rev: 5.10.1
28+
rev: 5.12.0
2929
hooks:
3030
- id: isort

django_redis/client/herd.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ def set(
6969
nx=False,
7070
xx=False,
7171
):
72-
7372
if timeout is DEFAULT_TIMEOUT:
7473
timeout = self._backend.default_timeout
7574

django_redis/client/sharded.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,6 @@ def lock(
205205
client=None,
206206
thread_local=True,
207207
):
208-
209208
if client is None:
210209
key = self.make_key(key, version=version)
211210
client = self.get_server(key)

django_redis/pool.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111

1212
class ConnectionFactory:
13-
1413
# Store connection pool by cache backend options.
1514
#
1615
# _pools is a process-global, as otherwise _pools is cleared every time

tests/test_backend.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,6 @@ def test_ttl(self, cache: RedisCache):
541541
assert ttl == 0
542542

543543
def test_pttl(self, cache: RedisCache):
544-
545544
# Test pttl
546545
cache.set("foo", "bar", 10)
547546
ttl = cache.pttl("foo")
@@ -599,7 +598,6 @@ def test_pexpire(self, cache: RedisCache):
599598
assert cache.pexpire("not-existent-key", 20500) is False
600599

601600
def test_pexpire_at(self, cache: RedisCache):
602-
603601
# Test settings expiration time 1 hour ahead by datetime.
604602
cache.set("foo", "bar", timeout=None)
605603
expiration_time = datetime.datetime.now() + timedelta(hours=1)
@@ -625,7 +623,6 @@ def test_pexpire_at(self, cache: RedisCache):
625623
assert cache.pexpire_at("not-existent-key", expiration_time) is False
626624

627625
def test_expire_at(self, cache: RedisCache):
628-
629626
# Test settings expiration time 1 hour ahead by datetime.
630627
cache.set("foo", "bar", timeout=None)
631628
expiration_time = datetime.datetime.now() + timedelta(hours=1)

0 commit comments

Comments
 (0)