Skip to content

Commit 8ba8d96

Browse files
committed
Make black happy...
1 parent 0c0c3e5 commit 8ba8d96

File tree

4 files changed

+12
-7
lines changed

4 files changed

+12
-7
lines changed

aiocouch/couchdb.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,13 @@ async def __aexit__(self, exc_type, exc_value, traceback):
5858
async def check_credentials(self):
5959
"""Check the provided credentials.
6060
61-
:raises ~aiocouch.UnauthorizedError: if provided credentials aren't valid
61+
:raises ~aiocouch.UnauthorizedError: if provided credentials aren't valid
6262
6363
"""
6464
await self._server._check_session()
6565

6666
async def close(self):
67-
"""Closes the connection to the CouchDB server
68-
69-
"""
67+
"""Closes the connection to the CouchDB server"""
7068
await self._server.close()
7169

7270
async def create(self, id: str, exists_ok: bool = False, **kwargs) -> "Database":

aiocouch/remote.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,12 @@ async def _head(self, path, params=None):
9393
return await self._request("HEAD", path, params=params)
9494

9595
async def _request(
96-
self, method, path, params, return_json=True, **kwargs,
96+
self,
97+
method,
98+
path,
99+
params,
100+
return_json=True,
101+
**kwargs,
97102
):
98103
kwargs["params"] = _stringify_params(params)
99104

docs/conf.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
with open(_changelog_path, "r") as changelog:
2525
try:
2626
_version_info = re.match(
27-
r"# v(?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)", changelog.readline(),
27+
r"# v(?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)",
28+
changelog.readline(),
2829
).groupdict()
2930
except (OSError, IndexError):
3031
raise RuntimeError("Unable to determine version.")

tests/test_connection.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ async def test_cookie_authentication(event_loop, couchdb_with_user_access):
4646
# create a session cookie, which can be used later
4747
async with aiohttp.ClientSession() as session:
4848
async with session.post(
49-
f"{hostname}/_session", data={"name": user, "password": user},
49+
f"{hostname}/_session",
50+
data={"name": user, "password": user},
5051
) as resp:
5152
assert resp.status == 200
5253
await resp.json()

0 commit comments

Comments
 (0)