diff --git a/api/views/agreement_signature.py b/api/views/agreement_signature.py index e66af56..f8aa3ff 100644 --- a/api/views/agreement_signature.py +++ b/api/views/agreement_signature.py @@ -49,9 +49,7 @@ def check_signed(self, _, **url_params: str): # pylint: disable-next=line-too-long url=f"https://api.github.com/repos/{settings.GH_ORG}/{settings.GH_REPO}/commits", headers={"X-GitHub-Api-Version": "2022-11-28"}, - params=t.cast( - DataDict, {"path": settings.GH_FILE, "per_page": 1} - ), + params=t.cast(DataDict, {"path": settings.GH_FILE, "per_page": 1}), timeout=10, ) if not response.ok: diff --git a/api/views/contributor_test.py b/api/views/contributor_test.py index 1244ec8..7801d38 100644 --- a/api/views/contributor_test.py +++ b/api/views/contributor_test.py @@ -25,9 +25,7 @@ def setUp(self): def test_list(self): """Check list of all contributors.""" - self.client.list( - models=list(Contributor.objects.all()) - ) + self.client.list(models=list(Contributor.objects.all())) def test_retrieve(self): """Can retrieve a single contributor."""