Skip to content

Commit 885d3ea

Browse files
style: format code with Black and Gofumpt
This commit fixes the style issues introduced in 4b06f26 according to the output from Black and Gofumpt. Details: None
1 parent 4b06f26 commit 885d3ea

4 files changed

Lines changed: 24 additions & 8 deletions

File tree

assignment.py

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,21 @@
11
(*FIRST,) = [1, 2, 3] # documenting code no fungggg
22
*FIRST, a, b = [1, 2, 3, 7] # documenting code no fuddddnffffff
3-
a, b = [1, 8, 2, 3, 5, 6,7, 8, 9, 12, 88] # documenting code no fun hehehehehefffffddddd
3+
a, b = [
4+
1,
5+
8,
6+
2,
7+
3,
8+
5,
9+
6,
10+
7,
11+
8,
12+
9,
13+
12,
14+
88,
15+
] # documenting code no fun hehehehehefffffddddd
416
c = 1
517

18+
619
def not_covered():
7-
print("hellooooow")
8-
pass
20+
print("hellooooow")
21+
pass

demo_code.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
import ssl
55

66

7-
AWS_SECRET_KEY = "d6s$f9g!j8mg7hw?n&2ffffFdgsdgdddddsfddddddgfljwnfjsgsljfbjffffffkldslUwU"
7+
AWS_SECRET_KEY = (
8+
"d6s$f9g!j8mg7hw?n&2ffffFdgsdgdddddsfddddddgfljwnfjsgsljfbjffffffkldslUwU"
9+
)
810

911

1012
class BaseNumberGenerator:
@@ -100,8 +102,9 @@ def tar_something():
100102
def bad_isinstance(initial_condition, object, other_obj, foo, bar, baz):
101103
pass
102104

105+
103106
def not_check(x):
104-
if x in (1, 2 ,7,3):
107+
if x in (1, 2, 7, 3):
105108
print("Yes")
106109
elif x != 2 or x != 3:
107110
print("also true")
@@ -114,7 +117,8 @@ def not_check(x):
114117

115118
elif x in (10, 20, 30):
116119
print("Why even?")
117-
120+
121+
118122
def check(x):
119123
if x in (1, 2, 3):
120124
print("Yes")

django_issues.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
from django.views.decorators.http import require_http_methods
55

66

7-
87
@require_http_methods(["GET", "POST"]) # Not Sensitive?????jjjjjj
98
def current_datetime(request):
109
now = datetime.datetime.now()

miscellaneous.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33

44
class Orange:
5-
"""Represents the fruit orange.. """
5+
"""Represents the fruit orange.."""
66

77
orange = "#FFA500"
88

0 commit comments

Comments
 (0)