From 3d825cd170a3b73d10a38e14d8f24043e5bb6505 Mon Sep 17 00:00:00 2001 From: Georg Krause Date: Fri, 15 Jul 2022 09:49:37 +0200 Subject: [PATCH] Fix black linting --- .gitlab-ci.yml | 2 +- api/funkwhale_api/federation/utils.py | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7d88bb04a..bc163ae3b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -124,7 +124,7 @@ black: before_script: - pip install black script: - - black --check --diff api/ + - black --check --diff . only: refs: - branches diff --git a/api/funkwhale_api/federation/utils.py b/api/funkwhale_api/federation/utils.py index d04d639aa..9dce78246 100644 --- a/api/funkwhale_api/federation/utils.py +++ b/api/funkwhale_api/federation/utils.py @@ -67,7 +67,11 @@ def slugify_username(username): def retrieve_ap_object( - fid, actor, serializer_class=None, queryset=None, apply_instance_policies=True, + fid, + actor, + serializer_class=None, + queryset=None, + apply_instance_policies=True, ): # we have a duplicate check here because it's less expensive to do those checks # twice than to trigger a HTTP request