Fix black linting

This commit is contained in:
Georg Krause 2022-07-15 09:49:37 +02:00
parent 05b0dded7c
commit 3d825cd170
No known key found for this signature in database
GPG Key ID: 2970D504B2183D22
2 changed files with 6 additions and 2 deletions

View File

@ -124,7 +124,7 @@ black:
before_script: before_script:
- pip install black - pip install black
script: script:
- black --check --diff api/ - black --check --diff .
only: only:
refs: refs:
- branches - branches

View File

@ -67,7 +67,11 @@ def slugify_username(username):
def retrieve_ap_object( 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 # we have a duplicate check here because it's less expensive to do those checks
# twice than to trigger a HTTP request # twice than to trigger a HTTP request