Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Cleanup unused imports

Roland Geider20415545ae3a
diff --git a/wger/core/management/commands/setup-powersync-storage.py b/wger/core/management/commands/setup-powersync-storage.py
index 8f787783e..dab3c5395 100644
--- a/wger/core/management/commands/setup-powersync-storage.py
+++ b/wger/core/management/commands/setup-powersync-storage.py
@@ -14,7 +14,6 @@
# along with Workout Manager. If not, see <http://www.gnu.org/licenses/>.
# Standard Library
-import os
# Django
from django.conf import settings
diff --git a/wger/core/tests/test_app_auth_handoff.py b/wger/core/tests/test_app_auth_handoff.py
index 53b097f6d..bcadc0f16 100644
--- a/wger/core/tests/test_app_auth_handoff.py
+++ b/wger/core/tests/test_app_auth_handoff.py
@@ -14,7 +14,6 @@
# Standard Library
from urllib.parse import (
- parse_qs,
urlparse,
)
diff --git a/wger/core/tests/test_language.py b/wger/core/tests/test_language.py
index c4b6004f2..6b1fc7da3 100644
--- a/wger/core/tests/test_language.py
+++ b/wger/core/tests/test_language.py
@@ -17,7 +17,6 @@
# Django
from django.urls import (
- reverse,
reverse_lazy,
)
diff --git a/wger/exercises/management/commands/exercises-health-check.py b/wger/exercises/management/commands/exercises-health-check.py
index 167f540a5..2a84ee5b3 100644
--- a/wger/exercises/management/commands/exercises-health-check.py
+++ b/wger/exercises/management/commands/exercises-health-check.py
@@ -13,7 +13,6 @@
# You should have received a copy of the GNU Affero General Public License
# Standard Library
-import collections
from argparse import RawTextHelpFormatter
# Django
diff --git a/wger/exercises/urls.py b/wger/exercises/urls.py
index 53e02160f..3631c1761 100644
--- a/wger/exercises/urls.py
+++ b/wger/exercises/urls.py
@@ -19,7 +19,6 @@
from django.conf.urls import include
from django.urls import (
path,
- re_path,
)
# wger
diff --git a/wger/gym/apps.py b/wger/gym/apps.py
index 533bd33b5..573dfd523 100644
--- a/wger/gym/apps.py
+++ b/wger/gym/apps.py
@@ -23,4 +23,4 @@ class GymConfig(AppConfig):
verbose_name = 'Gym'
def ready(self):
- import wger.gym.signals
+ import wger.gym.signals # noqa: F401
diff --git a/wger/manager/management/commands/reset-routine-cache.py b/wger/manager/management/commands/reset-routine-cache.py
index eb6f43a64..7f6cc0963 100644
--- a/wger/manager/management/commands/reset-routine-cache.py
+++ b/wger/manager/management/commands/reset-routine-cache.py
@@ -12,7 +12,6 @@
#
# You should have received a copy of the GNU Affero General Public License
# Standard Library
-from typing import Any
# Django
from django.core.management.base import BaseCommand
diff --git a/wger/manager/models/session.py b/wger/manager/models/session.py
index df641f148..9baa40e0b 100644
--- a/wger/manager/models/session.py
+++ b/wger/manager/models/session.py
@@ -16,7 +16,6 @@
# Standard Library
import datetime
-from uuid import uuid4
# Django
from django.conf import settings
diff --git a/wger/nutrition/tests/test_meal_item.py b/wger/nutrition/tests/test_meal_item.py
index 9876247ed..7a43e540f 100644
--- a/wger/nutrition/tests/test_meal_item.py
+++ b/wger/nutrition/tests/test_meal_item.py
@@ -18,7 +18,6 @@ from wger.core.tests import api_base_test
from wger.core.tests.base_testcase import WgerTestCase
from wger.nutrition.forms import MealItemForm
from wger.nutrition.models import (
- IngredientWeightUnit,
MealItem,
)
diff --git a/wger/trophies/api/views.py b/wger/trophies/api/views.py
index 9379741db..17c38a30f 100644
--- a/wger/trophies/api/views.py
+++ b/wger/trophies/api/views.py
@@ -16,7 +16,6 @@
# Third Party
from drf_spectacular.utils import (
- OpenApiResponse,
extend_schema,
)
from rest_framework import viewsets
diff --git a/wger/trophies/checkers/time_based.py b/wger/trophies/checkers/time_based.py
index 8781f255f..3aaebb10b 100644
--- a/wger/trophies/checkers/time_based.py
+++ b/wger/trophies/checkers/time_based.py
@@ -17,7 +17,6 @@
# Standard Library
import datetime
from typing import (
- Any,
Optional,
)
diff --git a/wger/utils/cache.py b/wger/utils/cache.py
index 78ffecd95..525a7f317 100644
--- a/wger/utils/cache.py
+++ b/wger/utils/cache.py
@@ -17,7 +17,6 @@ import logging
# Django
from django.core.cache import cache
-from django.core.cache.utils import make_template_fragment_key
logger = logging.getLogger(__name__)
diff --git a/wger/utils/validators.py b/wger/utils/validators.py
index 8e848f76f..4a7de7a0b 100644
--- a/wger/utils/validators.py
+++ b/wger/utils/validators.py
@@ -4,7 +4,6 @@ from django.utils.dateparse import (
parse_date,
parse_datetime,
)
-from django.utils.translation import gettext_lazy as _
# wger
from wger.core.models import Language
diff --git a/wger/weight/forms.py b/wger/weight/forms.py
index 1efa0ed10..7fca4fddc 100644
--- a/wger/weight/forms.py
+++ b/wger/weight/forms.py
@@ -18,7 +18,6 @@
from django import forms
from django.forms import (
CharField,
- DateTimeField,
Form,
Textarea,
)