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.pyindex 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.pyindex 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 @@# Djangofrom django.contrib.auth.models import Userfrom 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.pyindex c15b02378..b25b315eb 100644--- a/wger/exercises/models/muscle.py+++ b/wger/exercises/models/muscle.py@@ -22,6 +22,7 @@ from django.db import modelsfrom django.templatetags.static import staticfrom django.utils.translation import gettext_lazy as _+logger = logging.getLogger(__name__)diff --git a/wger/manager/managers.py b/wger/manager/managers.pyindex eb9ca48fb..9d58bd898 100644--- a/wger/manager/managers.py+++ b/wger/manager/managers.py@@ -19,7 +19,6 @@ from django.core.exceptions import ObjectDoesNotExistfrom django.db import models-class ScheduleManager(models.Manager):"""Custom manager for workout schedulesdiff --git a/wger/nutrition/models/ingredient.py b/wger/nutrition/models/ingredient.pyindex 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_FACTORfrom .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.pyindex 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 Ingredientfrom .weight_unit import WeightUnit+logger = logging.getLogger(__name__)diff --git a/wger/nutrition/models/meal.py b/wger/nutrition/models/meal.pyindex 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# Localfrom .plan import NutritionPlan+logger = logging.getLogger(__name__)diff --git a/wger/nutrition/models/meal_item.py b/wger/nutrition/models/meal_item.pyindex 8f31152bb..03b5a96a0 100644--- a/wger/nutrition/models/meal_item.py+++ b/wger/nutrition/models/meal_item.py@@ -33,6 +33,7 @@ from .ingredient import Ingredientfrom .ingredient_weight_unit import IngredientWeightUnitfrom .meal import Meal+logger = logging.getLogger(__name__)diff --git a/wger/nutrition/models/plan.py b/wger/nutrition/models/plan.pyindex 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_mapperfrom wger.utils.constants import TWOPLACESfrom wger.weight.models import WeightEntry+logger = logging.getLogger(__name__)diff --git a/wger/nutrition/views/plan.py b/wger/nutrition/views/plan.pyindex 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__)# ************************