diff --git a/aiocouch/couchdb.py b/aiocouch/couchdb.py index 182390b..cc9e3ec 100644 --- a/aiocouch/couchdb.py +++ b/aiocouch/couchdb.py @@ -58,15 +58,13 @@ async def __aexit__(self, exc_type, exc_value, traceback): async def check_credentials(self): """Check the provided credentials. - :raises ~aiocouch.UnauthorizedError: if provided credentials aren't valid + :raises ~aiocouch.UnauthorizedError: if provided credentials aren't valid """ await self._server._check_session() async def close(self): - """Closes the connection to the CouchDB server - - """ + """Closes the connection to the CouchDB server""" await self._server.close() async def create(self, id: str, exists_ok: bool = False, **kwargs) -> "Database": diff --git a/aiocouch/remote.py b/aiocouch/remote.py index 906fc17..537185b 100644 --- a/aiocouch/remote.py +++ b/aiocouch/remote.py @@ -93,7 +93,12 @@ async def _head(self, path, params=None): return await self._request("HEAD", path, params=params) async def _request( - self, method, path, params, return_json=True, **kwargs, + self, + method, + path, + params, + return_json=True, + **kwargs, ): kwargs["params"] = _stringify_params(params) diff --git a/docs/conf.py b/docs/conf.py index 3ec5e00..d2c7fbf 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -24,7 +24,8 @@ with open(_changelog_path, "r") as changelog: try: _version_info = re.match( - r"# v(?P\d+)\.(?P\d+)\.(?P\d+)", changelog.readline(), + r"# v(?P\d+)\.(?P\d+)\.(?P\d+)", + changelog.readline(), ).groupdict() except (OSError, IndexError): raise RuntimeError("Unable to determine version.") diff --git a/tests/test_connection.py b/tests/test_connection.py index c484a08..08b3061 100644 --- a/tests/test_connection.py +++ b/tests/test_connection.py @@ -46,7 +46,8 @@ async def test_cookie_authentication(event_loop, couchdb_with_user_access): # create a session cookie, which can be used later async with aiohttp.ClientSession() as session: async with session.post( - f"{hostname}/_session", data={"name": user, "password": user}, + f"{hostname}/_session", + data={"name": user, "password": user}, ) as resp: assert resp.status == 200 await resp.json()