chore: Align with flake8 6.1 rules

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2737>
environments/review-docs-renov-r6aeyi/deployments/19166
Georg Krause 2024-02-02 14:36:55 +01:00
rodzic f58a33ec02
commit d82eceecae
4 zmienionych plików z 3 dodań i 6 usunięć

Wyświetl plik

@ -10,7 +10,7 @@ class Command(BaseCommand):
self.help = "Helper to generate randomized testdata"
self.type_choices = {"notifications": self.handle_notifications}
self.missing_args_message = f"Please specify one of the following sub-commands: { *self.type_choices.keys(), }"
self.missing_args_message = f"Please specify one of the following sub-commands: {*self.type_choices.keys(), }"
def add_arguments(self, parser):
subparsers = parser.add_subparsers(dest="subcommand")

Wyświetl plik

@ -93,7 +93,6 @@ class SerializedPreference(types.BasePreferenceType):
serializer
"""
serializer = JSONSerializer
data_serializer_class = None
field_class = JSONField
widget = forms.Textarea

Wyświetl plik

@ -297,8 +297,6 @@ class LibraryViewSet(
)
instance.delete()
follows = action
@extend_schema(
responses=federation_api_serializers.LibraryFollowSerializer(many=True)
)

Wyświetl plik

@ -198,8 +198,8 @@ def test_can_get_pictures(name):
cover_data = data.get_picture("cover_front", "other")
assert cover_data["mimetype"].startswith("image/")
assert len(cover_data["content"]) > 0
assert type(cover_data["content"]) == bytes
assert type(cover_data["description"]) == str
assert type(cover_data["content"]) is bytes
assert type(cover_data["description"]) is str
@pytest.mark.parametrize(