Self hosted FLOSS fitness/workout, nutrition and weight tracker
Automatic linting
Github-actionsf7ed9b363358
diff --git a/wger/exercises/api/views.py b/wger/exercises/api/views.pyindex 87e0cdca1..bb3ba6a19 100644--- a/wger/exercises/api/views.py+++ b/wger/exercises/api/views.py@@ -17,10 +17,6 @@import loggingfrom uuid import UUID-# Third Party-import bleach-from actstream import action as actstream_action-from bleach.css_sanitizer import CSSSanitizer# Djangofrom django.conf import settingsfrom django.contrib.postgres.search import TrigramSimilarity@@ -28,6 +24,11 @@ from django.db.models import Qfrom django.utils.decorators import method_decoratorfrom django.utils.translation import gettext as _from django.views.decorators.cache import cache_page++# Third Party+import bleach+from actstream import action as actstream_action+from bleach.css_sanitizer import CSSSanitizerfrom drf_spectacular.types import OpenApiTypesfrom drf_spectacular.utils import (OpenApiParameter,@@ -89,6 +90,7 @@ from wger.utils.constants import (from wger.utils.db import is_postgres_dbfrom wger.utils.language import load_language+logger = logging.getLogger(__name__)diff --git a/wger/exercises/models/image.py b/wger/exercises/models/image.pyindex 3185d65a1..740cdc0e2 100644--- a/wger/exercises/models/image.py+++ b/wger/exercises/models/image.py@@ -21,6 +21,7 @@ import uuid# Djangofrom django.db import modelsfrom django.utils.translation import gettext_lazy as _+# Third Partyfrom simple_history.models import HistoricalRecordsdiff --git a/wger/utils/images.py b/wger/utils/images.pyindex e76eb1306..ebb4c0322 100644--- a/wger/utils/images.py+++ b/wger/utils/images.py@@ -12,13 +12,15 @@## You should have received a copy of the GNU Affero General Public License+# Django+from django.core.exceptions import ValidationError+# Third Partyfrom PIL import (Image,UnidentifiedImageError,)-# Django-from django.core.exceptions import ValidationError+MAX_FILE_SIZE_MB = 20