From 74874e07429caaa5f40728834cc889334b137036 Mon Sep 17 00:00:00 2001 From: "deepsource-dev-autofix[bot]" <61578317+deepsource-dev-autofix[bot]@users.noreply.github.com> Date: Wed, 27 Dec 2023 04:30:47 +0000 Subject: [PATCH] style: format code with Autopep8 This commit fixes the style issues introduced in 0130bec according to the output from Autopep8. Details: None --- assignment.py | 8 +++++--- demo_code.py | 6 ++++-- django_issues.py | 1 - 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/assignment.py b/assignment.py index 38c2e5ea4..a48cf3650 100644 --- a/assignment.py +++ b/assignment.py @@ -1,8 +1,10 @@ (*FIRST,) = [1, 2, 3] # documenting code no fun *FIRST, a, b = [1, 2, 3, 7] # documenting code no funffffff -a, b = [1, 8, 2, 3, 5, 6,7, 8, 9, 12] # documenting code no fun hehehehehefffffddddd +# documenting code no fun hehehehehefffffddddd +a, b = [1, 8, 2, 3, 5, 6, 7, 8, 9, 12] 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 8419fff5f..f04fa031f 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?????jjjjjj def current_datetime(request): now = datetime.datetime.now()