Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Automatic linting

Github-actions99713c5e1512
diff --git a/wger/exercises/management/commands/read-exercise-cleanup.py b/wger/exercises/management/commands/read-exercise-cleanup.py
index e88128b56..25c11adca 100644
--- a/wger/exercises/management/commands/read-exercise-cleanup.py
+++ b/wger/exercises/management/commands/read-exercise-cleanup.py
@@ -37,6 +37,7 @@ from wger.exercises.models import (
)
from wger.utils.constants import CC_BY_SA_4_LICENSE_ID
+
UUID_NEW = 'NEW'
VIDEO_AUTHOR = 'Goulart'
VIDEO_PATH = pathlib.Path('videos-tmp')
diff --git a/wger/nutrition/models/ingredient.py b/wger/nutrition/models/ingredient.py
index 7755ba20f..a5cec08b2 100644
--- a/wger/nutrition/models/ingredient.py
+++ b/wger/nutrition/models/ingredient.py
@@ -59,6 +59,7 @@ from wger.utils.language import load_language
from wger.utils.models import AbstractLicenseModel
from wger.utils.requests import wger_user_agent
+
logger = logging.getLogger(__name__)
diff --git a/wger/nutrition/sync.py b/wger/nutrition/sync.py
index 36aecfb76..e5b233252 100644
--- a/wger/nutrition/sync.py
+++ b/wger/nutrition/sync.py
@@ -56,6 +56,7 @@ from wger.utils.requests import (
)
from wger.utils.url import make_uri
+
logger = logging.getLogger(__name__)
@@ -81,8 +82,8 @@ def fetch_ingredient_image(pk: int):
if (
ingredient.last_image_check
and (
- ingredient.last_image_check + settings.WGER_SETTINGS['INGREDIENT_IMAGE_CHECK_INTERVAL']
- )
+ ingredient.last_image_check + settings.WGER_SETTINGS['INGREDIENT_IMAGE_CHECK_INTERVAL']
+ )
> timezone.now()
):
return
diff --git a/wger/nutrition/tests/test_tasks.py b/wger/nutrition/tests/test_tasks.py
index b55db0f51..09d36a85d 100644
--- a/wger/nutrition/tests/test_tasks.py
+++ b/wger/nutrition/tests/test_tasks.py
@@ -152,7 +152,7 @@ class FetchIngredientImageTestCase(WgerTestCase):
WGER_SETTINGS={
'DOWNLOAD_INGREDIENTS_FROM': DOWNLOAD_INGREDIENT_OFF,
'INGREDIENT_IMAGE_CHECK_INTERVAL': datetime.timedelta(days=5),
- }
+ },
):
result = fetch_ingredient_image(1)
mock_from_json.assert_not_called()
@@ -176,7 +176,7 @@ class FetchIngredientImageTestCase(WgerTestCase):
WGER_SETTINGS={
'DOWNLOAD_INGREDIENTS_FROM': DOWNLOAD_INGREDIENT_OFF,
'INGREDIENT_IMAGE_CHECK_INTERVAL': datetime.timedelta(days=5),
- }
+ },
):
result = fetch_ingredient_image(1)
mock_from_json.assert_called()
diff --git a/wger/settings_global.py b/wger/settings_global.py
index 3f60eb849..a1b696c61 100644
--- a/wger/settings_global.py
+++ b/wger/settings_global.py
@@ -23,6 +23,7 @@ from datetime import timedelta
from wger import get_version
from wger.utils.constants import DOWNLOAD_INGREDIENT_WGER
+
"""
This file contains the global settings that don't usually need to be changed.
For a full list of options, visit:
diff --git a/wger/utils/constants.py b/wger/utils/constants.py
index 476c98279..c6dc5a798 100644
--- a/wger/utils/constants.py
+++ b/wger/utils/constants.py
@@ -15,6 +15,7 @@
# Standard Library
from decimal import Decimal
+
# Navigation
WORKOUT_TAB = 'workout'
EXERCISE_TAB = 'exercises'
diff --git a/wger/utils/models.py b/wger/utils/models.py
index 483338763..085da94e6 100644
--- a/wger/utils/models.py
+++ b/wger/utils/models.py
@@ -20,6 +20,7 @@ from django.utils.translation import gettext_lazy as _
from wger.core.models import License
from wger.utils.constants import CC_BY_SA_4_LICENSE_ID
+
"""
Abstract model classes
"""