Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Automatic linting

Github-actions93d879150b94
diff --git a/wger/config/models/gym_config.py b/wger/config/models/gym_config.py
index babf57eaf..c84ce85dc 100644
--- a/wger/config/models/gym_config.py
+++ b/wger/config/models/gym_config.py
@@ -29,6 +29,7 @@ from wger.gym.models import (
GymUserConfig,
)
+
logger = logging.getLogger(__name__)
diff --git a/wger/core/management/commands/add-user-rest.py b/wger/core/management/commands/add-user-rest.py
index 121674982..771116ed7 100644
--- a/wger/core/management/commands/add-user-rest.py
+++ b/wger/core/management/commands/add-user-rest.py
@@ -1,6 +1,8 @@
# Django
from django.contrib.auth.models import User
from django.core.management.base import BaseCommand
+
+
"""
Custom command permitting users to create user accounts
"""
diff --git a/wger/exercises/models/muscle.py b/wger/exercises/models/muscle.py
index c15b02378..b25b315eb 100644
--- a/wger/exercises/models/muscle.py
+++ b/wger/exercises/models/muscle.py
@@ -22,6 +22,7 @@ from django.db import models
from django.templatetags.static import static
from django.utils.translation import gettext_lazy as _
+
logger = logging.getLogger(__name__)
diff --git a/wger/manager/managers.py b/wger/manager/managers.py
index eb9ca48fb..9d58bd898 100644
--- a/wger/manager/managers.py
+++ b/wger/manager/managers.py
@@ -19,7 +19,6 @@ from django.core.exceptions import ObjectDoesNotExist
from django.db import models
-
class ScheduleManager(models.Manager):
"""
Custom manager for workout schedules
diff --git a/wger/nutrition/models/ingredient.py b/wger/nutrition/models/ingredient.py
index cf8b6a38b..0d60fcd7c 100644
--- a/wger/nutrition/models/ingredient.py
+++ b/wger/nutrition/models/ingredient.py
@@ -51,6 +51,7 @@ from wger.utils.models import (
from ..consts import ENERGY_FACTOR
from .ingredient_category import IngredientCategory
+
logger = logging.getLogger(__name__)
diff --git a/wger/nutrition/models/ingredient_weight_unit.py b/wger/nutrition/models/ingredient_weight_unit.py
index c458529bb..ffb6f205b 100644
--- a/wger/nutrition/models/ingredient_weight_unit.py
+++ b/wger/nutrition/models/ingredient_weight_unit.py
@@ -25,6 +25,7 @@ from django.utils.translation import gettext_lazy as _
from .ingredient import Ingredient
from .weight_unit import WeightUnit
+
logger = logging.getLogger(__name__)
diff --git a/wger/nutrition/models/meal.py b/wger/nutrition/models/meal.py
index fa931dd76..1c2af6e13 100644
--- a/wger/nutrition/models/meal.py
+++ b/wger/nutrition/models/meal.py
@@ -29,6 +29,7 @@ from wger.utils.fields import Html5TimeField
# Local
from .plan import NutritionPlan
+
logger = logging.getLogger(__name__)
diff --git a/wger/nutrition/models/meal_item.py b/wger/nutrition/models/meal_item.py
index 8f31152bb..03b5a96a0 100644
--- a/wger/nutrition/models/meal_item.py
+++ b/wger/nutrition/models/meal_item.py
@@ -33,6 +33,7 @@ from .ingredient import Ingredient
from .ingredient_weight_unit import IngredientWeightUnit
from .meal import Meal
+
logger = logging.getLogger(__name__)
diff --git a/wger/nutrition/models/plan.py b/wger/nutrition/models/plan.py
index 668ecc8c5..6fbcf8d65 100644
--- a/wger/nutrition/models/plan.py
+++ b/wger/nutrition/models/plan.py
@@ -33,6 +33,7 @@ from wger.utils.cache import cache_mapper
from wger.utils.constants import TWOPLACES
from wger.weight.models import WeightEntry
+
logger = logging.getLogger(__name__)
diff --git a/wger/nutrition/views/plan.py b/wger/nutrition/views/plan.py
index dc31e9cd8..10a09b486 100644
--- a/wger/nutrition/views/plan.py
+++ b/wger/nutrition/views/plan.py
@@ -76,6 +76,7 @@ from wger.utils.pdf import (
styleSheet,
)
+
logger = logging.getLogger(__name__)
# ************************