Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Automatic linting

Github-actions0455290adde8
diff --git a/wger/core/management/commands/dummy-generator-users.py b/wger/core/management/commands/dummy-generator-users.py
index db0158041..815f7b72a 100644
--- a/wger/core/management/commands/dummy-generator-users.py
+++ b/wger/core/management/commands/dummy-generator-users.py
@@ -22,10 +22,16 @@ from django.contrib.auth.models import User
from django.core.management.base import BaseCommand
from django.db import IntegrityError
from django.utils.text import slugify
+
+# Third Party
from faker import Faker
# wger
-from wger.gym.models import Gym, GymUserConfig
+from wger.gym.models import (
+ Gym,
+ GymUserConfig,
+)
+
logger = logging.getLogger(__name__)
diff --git a/wger/core/management/commands/dummy-generator.py b/wger/core/management/commands/dummy-generator.py
index 6cf7d8eb3..3c30c45df 100644
--- a/wger/core/management/commands/dummy-generator.py
+++ b/wger/core/management/commands/dummy-generator.py
@@ -23,10 +23,16 @@ from django.core.management import call_command
from django.core.management.base import BaseCommand
from django.db import IntegrityError
from django.utils.text import slugify
+
+# Third Party
from faker import Faker
# wger
-from wger.gym.models import Gym, GymUserConfig
+from wger.gym.models import (
+ Gym,
+ GymUserConfig,
+)
+
logger = logging.getLogger(__name__)
diff --git a/wger/gym/management/commands/dummy-generator-gyms.py b/wger/gym/management/commands/dummy-generator-gyms.py
index a417e0e63..6477a13ac 100644
--- a/wger/gym/management/commands/dummy-generator-gyms.py
+++ b/wger/gym/management/commands/dummy-generator-gyms.py
@@ -20,13 +20,16 @@ import random
# Django
from django.contrib.auth.models import User
from django.core.management.base import BaseCommand
+
+# Third Party
from faker import Faker
from faker.providers import DynamicProvider
-from wger.gym.models import Gym
# wger
+from wger.gym.models import Gym
from wger.weight.models import WeightEntry
+
logger = logging.getLogger(__name__)
@@ -51,7 +54,6 @@ class Command(BaseCommand):
"Pumping",
"Results",
"Top",
-
]
names_second = [
"Academy",
@@ -86,10 +88,7 @@ class Command(BaseCommand):
elements=self.names_first,
)
- gym_names_2 = DynamicProvider(
- provider_name="gym_names2",
- elements=self.names_second
- )
+ gym_names_2 = DynamicProvider(provider_name="gym_names2", elements=self.names_second)
faker = Faker()
faker.add_provider(gym_names_1)
diff --git a/wger/measurements/management/commands/dummy-generator-measurement-categories.py b/wger/measurements/management/commands/dummy-generator-measurement-categories.py
index d661c0a27..73205ca9d 100644
--- a/wger/measurements/management/commands/dummy-generator-measurement-categories.py
+++ b/wger/measurements/management/commands/dummy-generator-measurement-categories.py
@@ -24,6 +24,7 @@ from django.core.management.base import BaseCommand
# wger
from wger.measurements.models import Category
+
logger = logging.getLogger(__name__)
diff --git a/wger/nutrition/management/commands/dummy-generator-nutrition.py b/wger/nutrition/management/commands/dummy-generator-nutrition.py
index 899f25062..f36b7960c 100644
--- a/wger/nutrition/management/commands/dummy-generator-nutrition.py
+++ b/wger/nutrition/management/commands/dummy-generator-nutrition.py
@@ -36,6 +36,7 @@ from wger.nutrition.models import (
NutritionPlan,
)
+
logger = logging.getLogger(__name__)
diff --git a/wger/weight/management/commands/dummy-generator-body-weight.py b/wger/weight/management/commands/dummy-generator-body-weight.py
index 0a96ad3bf..8cdbe8159 100644
--- a/wger/weight/management/commands/dummy-generator-body-weight.py
+++ b/wger/weight/management/commands/dummy-generator-body-weight.py
@@ -20,12 +20,14 @@ import random
# Django
from django.contrib.auth.models import User
from django.core.management.base import BaseCommand
+
+# Third Party
+from faker import Faker
from faker.providers import DynamicProvider
# wger
from wger.weight.models import WeightEntry
-from faker import Faker
logger = logging.getLogger(__name__)