chore: format files using isort (pre-commit)

This commit is contained in:
jo 2022-11-23 12:11:36 +01:00
commit cff619679b
No known key found for this signature in database
GPG key ID: B2FEC9B22722B984
226 changed files with 483 additions and 735 deletions

View file

@ -1,5 +1,4 @@
import pytest
from django.core.management import call_command
from funkwhale_api.federation import models as federation_models

View file

@ -1,15 +1,16 @@
import pytest
from rest_framework import viewsets
from funkwhale_api.common import decorators
from funkwhale_api.common import models
from funkwhale_api.common import mutations
from funkwhale_api.common import serializers
from funkwhale_api.common import signals
from funkwhale_api.common import tasks
from funkwhale_api.music import models as music_models
from funkwhale_api.common import (
decorators,
models,
mutations,
serializers,
signals,
tasks,
)
from funkwhale_api.music import licenses
from funkwhale_api.music import models as music_models
class V(viewsets.ModelViewSet):

View file

@ -1,15 +1,13 @@
import html
import time
import pytest
from django.http import HttpResponse
from django.urls import reverse
from funkwhale_api.common import middleware, throttling, utils
from funkwhale_api.federation import utils as federation_utils
from funkwhale_api.common import middleware
from funkwhale_api.common import throttling
from funkwhale_api.common import utils
def test_spa_fallback_middleware_no_404(mocker):
get_response = mocker.Mock()

View file

@ -1,5 +1,4 @@
import pytest
from django.urls import reverse
from funkwhale_api.federation import utils as federation_utils

View file

@ -1,9 +1,8 @@
import pytest
from rest_framework import serializers
from funkwhale_api.common import mutations
from rest_framework import serializers
@pytest.fixture
def mutations_registry():

View file

@ -1,8 +1,6 @@
import pytest
from dynamic_preferences import types
from dynamic_preferences.registries import global_preferences_registry
from rest_framework import serializers
from funkwhale_api.common import preferences as common_preferences

View file

@ -1,7 +1,6 @@
import pytest
from django.db.models import Q
from django import forms
from django.db.models import Q
from funkwhale_api.common import search
from funkwhale_api.music import models as music_models

View file

@ -1,15 +1,13 @@
import os
import PIL
import django_filters
import PIL
from django.core.files.uploadedfile import SimpleUploadedFile
from django.urls import reverse
import django_filters
from funkwhale_api.common import serializers
from funkwhale_api.common import utils
from funkwhale_api.users import models
from funkwhale_api.common import serializers, utils
from funkwhale_api.federation import utils as federation_utils
from funkwhale_api.users import models
class TestActionFilterSet(django_filters.FilterSet):

View file

@ -1,10 +1,8 @@
import pytest
import datetime
from funkwhale_api.common import models
from funkwhale_api.common import serializers
from funkwhale_api.common import signals
from funkwhale_api.common import tasks
import pytest
from funkwhale_api.common import models, serializers, signals, tasks
def test_apply_migration(factories, mocker):

View file

@ -1,4 +1,5 @@
import time
import pytest
from funkwhale_api.common import throttling

View file

@ -1,4 +1,5 @@
import io
import pytest
from funkwhale_api.common import utils

View file

@ -1,13 +1,9 @@
import io
import pytest
import pytest
from django.urls import reverse
from funkwhale_api.common import serializers
from funkwhale_api.common import signals
from funkwhale_api.common import tasks
from funkwhale_api.common import throttling
from funkwhale_api.common import utils
from funkwhale_api.common import serializers, signals, tasks, throttling, utils
def test_can_detail_mutation(logged_in_api_client, factories):