From ae8a273e5f93bff907a7259203059cd937d317a4 Mon Sep 17 00:00:00 2001
From: Carlos Vega <carlos.vega@uni.lu>
Date: Thu, 4 Apr 2024 12:47:19 +0200
Subject: [PATCH] make pep happy

---
 smash/web/api_views/subject.py | 2 +-
 smash/web/utils.py             | 6 ++++--
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/smash/web/api_views/subject.py b/smash/web/api_views/subject.py
index 2ee56a84..4c38afaa 100644
--- a/smash/web/api_views/subject.py
+++ b/smash/web/api_views/subject.py
@@ -771,7 +771,7 @@ def subjects(request: WSGIRequest, subject_list_type: str) -> HttpResponse:
         if length == -1:
             sliced_subjects = ordered_subjects
         else:
-            sliced_subjects = ordered_subjects[start : (start + length)]
+            sliced_subjects = ordered_subjects[start: (start + length)]
 
         result_subjects = sliced_subjects
 
diff --git a/smash/web/utils.py b/smash/web/utils.py
index f1a3715e..a71a6e66 100644
--- a/smash/web/utils.py
+++ b/smash/web/utils.py
@@ -11,14 +11,15 @@ from django.utils.text import capfirst
 
 from web.algorithm import VerhoeffAlgorithm, LuhnAlgorithm
 
-def strtobool (val):
+
+def strtobool(val):
     """Convert a string representation of truth to true (1) or false (0).
 
     True values are 'y', 'yes', 't', 'true', 'on', and '1'; false values
     are 'n', 'no', 'f', 'false', 'off', and '0'.  Raises ValueError if
     'val' is anything else.
 
-    From distutils lib
+    From distutils lib.
     """
     val = val.lower()
     if val in ('y', 'yes', 't', 'true', 'on', '1'):
@@ -28,6 +29,7 @@ def strtobool (val):
     else:
         raise ValueError(f"invalid truth value {val}")
 
+
 def get_deleted_objects(objs: List[models.Model]):
     collector = NestedObjects(using='default')
     collector.collect(objs)
-- 
GitLab