From 4a75d1f6cadb920a86710bd72b5b2f25042af35d Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Thu, 30 Nov 2023 19:13:05 +0000 Subject: [PATCH] style: format code with Autopep8 This commit fixes the style issues introduced in 9863e90 according to the output from Autopep8. Details: None --- assignment.py | 7 ++++--- demo_code.py | 6 ++++-- django_issues.py | 1 - 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/assignment.py b/assignment.py index 3249bcc78..36a6e4bb3 100644 --- a/assignment.py +++ b/assignment.py @@ -1,8 +1,9 @@ (*FIRST,) = [1, 2, 3] # documenting code no fun *FIRST, a, b = [1, 2, 3, 7] # documenting code no fun -a, b = [1, 8, 2, 3, 5, 6,7, 8] # documenting code no fun hehehehehefffff +a, b = [1, 8, 2, 3, 5, 6, 7, 8] # documenting code no fun hehehehehefffff c = 1 + def not_covered(): - print("hellooooow") - pass + print("hellooooow") + pass diff --git a/demo_code.py b/demo_code.py index edd32a51b..6b7afeef1 100644 --- a/demo_code.py +++ b/demo_code.py @@ -100,8 +100,9 @@ def tar_something(): def bad_isinstance(initial_condition, object, other_obj, foo, bar, baz): pass + def not_check(x): - if x in (1, 2 ,7,3): + if x in (1, 2, 7, 3): print("Yes") elif x != 2 or x != 3: print("also true") @@ -114,7 +115,8 @@ def not_check(x): elif x in (10, 20, 30): print("Why even?") - + + def check(x): if x in (1, 2, 3): print("Yes") diff --git a/django_issues.py b/django_issues.py index 9651d305b..3269ba95a 100644 --- a/django_issues.py +++ b/django_issues.py @@ -4,7 +4,6 @@ from django.views.decorators.http import require_http_methods - @require_http_methods(["GET", "POST"]) # Not Sensitive????? def current_datetime(request): now = datetime.datetime.now()