Skip to content

Commit 6f2b231

Browse files
committed
cleanup
1 parent eccdc9b commit 6f2b231

File tree

5 files changed

+4
-7
lines changed

5 files changed

+4
-7
lines changed

.gitignore

-3
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,3 @@ _release_notes
9696
tags
9797
.mypy_cache/
9898
.pytest_cache/
99-
100-
# IDEs
101-
.idea

aiocache/backends/valkey.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,9 @@ async def _add(self, key, value, ttl=None, _conn=None):
101101
kwargs["expiry"] = ExpirySet(ExpiryType.SEC, ttl)
102102
was_set = await self.client.set(key, value, **kwargs)
103103
if was_set != "OK":
104-
raise ValueError("Key {} already exists, use .set to update the value".format(key))
104+
raise ValueError(
105+
"Key {} already exists, use .set to update the value".format(key)
106+
)
105107
return was_set
106108

107109
async def _exists(self, key, _conn=None):

setup.cfg

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ max-line-length=100
77
[tool:pytest]
88
addopts = --cov=aiocache --cov=tests/ --cov-report term --strict-markers
99
asyncio_mode = auto
10-
asyncio_default_fixture_loop_scope = function
1110
junit_suite_name = aiohttp_test_suite
1211
filterwarnings=
1312
error

tests/acceptance/test_serializers.py

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
except ImportError:
1111
import json # type: ignore[no-redef]
1212

13-
from aiocache.backends.valkey import ValkeyCache
1413
from aiocache.serializers import (
1514
BaseSerializer,
1615
JsonSerializer,

tests/performance/test_footprint.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import platform
22
import time
3-
from typing import AsyncIterator, cast
3+
from typing import AsyncIterator
44

55
import aiomcache
66
import pytest

0 commit comments

Comments
 (0)