Skip to content

Commit f7ed9b3

Browse files
author
Github-actions
committed
Automatic linting
1 parent b2d1f7f commit f7ed9b3

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

wger/exercises/api/views.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,18 @@
1717
import logging
1818
from uuid import UUID
1919

20-
# Third Party
21-
import bleach
22-
from actstream import action as actstream_action
23-
from bleach.css_sanitizer import CSSSanitizer
2420
# Django
2521
from django.conf import settings
2622
from django.contrib.postgres.search import TrigramSimilarity
2723
from django.db.models import Q
2824
from django.utils.decorators import method_decorator
2925
from django.utils.translation import gettext as _
3026
from django.views.decorators.cache import cache_page
27+
28+
# Third Party
29+
import bleach
30+
from actstream import action as actstream_action
31+
from bleach.css_sanitizer import CSSSanitizer
3132
from drf_spectacular.types import OpenApiTypes
3233
from drf_spectacular.utils import (
3334
OpenApiParameter,
@@ -89,6 +90,7 @@
8990
from wger.utils.db import is_postgres_db
9091
from wger.utils.language import load_language
9192

93+
9294
logger = logging.getLogger(__name__)
9395

9496

wger/exercises/models/image.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
# Django
2222
from django.db import models
2323
from django.utils.translation import gettext_lazy as _
24+
2425
# Third Party
2526
from simple_history.models import HistoricalRecords
2627

wger/utils/images.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,15 @@
1212
#
1313
# You should have received a copy of the GNU Affero General Public License
1414

15+
# Django
16+
from django.core.exceptions import ValidationError
17+
1518
# Third Party
1619
from PIL import (
1720
Image,
1821
UnidentifiedImageError,
1922
)
20-
# Django
21-
from django.core.exceptions import ValidationError
23+
2224

2325
MAX_FILE_SIZE_MB = 20
2426

0 commit comments

Comments
 (0)