Skip to content

Commit 80a721e

Browse files
authored
Merge pull request #166 from realpython/dependabot/pip/black-20.8b1
Bump black from 19.10b0 to 20.8b1
2 parents 0e5f0f5 + 927a620 commit 80a721e

File tree

12 files changed

+131
-121
lines changed

12 files changed

+131
-121
lines changed

arcade-a-primer/arcade_basic_oop.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,10 @@
1414

1515

1616
class Welcome(arcade.Window):
17-
"""Our main welcome window
18-
"""
17+
"""Our main welcome window"""
1918

2019
def __init__(self):
21-
"""Initialize the window
22-
"""
20+
"""Initialize the window"""
2321

2422
# Call the parent class constructor
2523
super().__init__(SCREEN_WIDTH, SCREEN_HEIGHT, SCREEN_TITLE)
@@ -28,8 +26,7 @@ def __init__(self):
2826
arcade.set_background_color(arcade.color.WHITE)
2927

3028
def on_draw(self):
31-
"""Called whenever we need to draw our window
32-
"""
29+
"""Called whenever we need to draw our window"""
3330

3431
# Clear the screen and start drawing
3532
arcade.start_render()

arcade-a-primer/arcade_draw_shapes.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,10 @@
1313

1414

1515
class Welcome(arcade.Window):
16-
"""Our main welcome window
17-
"""
16+
"""Our main welcome window"""
1817

1918
def __init__(self):
20-
"""Initialize the window
21-
"""
19+
"""Initialize the window"""
2220

2321
# Call the parent class constructor
2422
super().__init__(SCREEN_WIDTH, SCREEN_HEIGHT, SCREEN_TITLE)
@@ -27,8 +25,7 @@ def __init__(self):
2725
arcade.set_background_color(arcade.color.WHITE)
2826

2927
def on_draw(self):
30-
"""Called whenever we need to draw our window
31-
"""
28+
"""Called whenever we need to draw our window"""
3229

3330
# Clear the screen and start drawing
3431
arcade.start_render()

arcade-a-primer/arcade_game.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ class SpaceShooter(arcade.Window):
4141
"""
4242

4343
def __init__(self, width: int, height: int, title: str):
44-
"""Initialize the game
45-
"""
44+
"""Initialize the game"""
4645
super().__init__(width, height, title)
4746

4847
# Setup the empty sprite lists
@@ -51,8 +50,7 @@ def __init__(self, width: int, height: int, title: str):
5150
self.all_sprites = arcade.SpriteList()
5251

5352
def setup(self):
54-
"""Get the game ready to play
55-
"""
53+
"""Get the game ready to play"""
5654

5755
# Set the background color
5856
arcade.set_background_color(arcade.color.SKY_BLUE)
@@ -236,8 +234,7 @@ def on_update(self, delta_time: float):
236234
self.player.left = 0
237235

238236
def on_draw(self):
239-
"""Draw all game objects
240-
"""
237+
"""Draw all game objects"""
241238

242239
arcade.start_render()
243240
self.all_sprites.draw()

intro-to-threading/prodcom_event.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77

88

99
class Pipeline:
10-
"""Class to allow a single element pipeline between producer and consumer.
10+
"""
11+
Class to allow a single element pipeline
12+
between producer and consumer.
1113
"""
1214

1315
def __init__(self):

intro-to-threading/prodcom_lock.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88

99

1010
class Pipeline:
11-
"""Class to allow a single element pipeline between producer and consumer.
11+
"""
12+
Class to allow a single element pipeline
13+
between producer and consumer.
1214
"""
1315

1416
def __init__(self):

pandas-gradebook-project/02-merging-dataframes.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,10 @@
4848
# ------------------------
4949

5050
final_data = pd.merge(
51-
roster, hw_exam_grades, left_index=True, right_index=True,
51+
roster,
52+
hw_exam_grades,
53+
left_index=True,
54+
right_index=True,
5255
)
5356
final_data = pd.merge(
5457
final_data, quiz_grades, left_on="Email Address", right_index=True

pandas-gradebook-project/03-calculating-grades.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,10 @@
4949
# ------------------------
5050

5151
final_data = pd.merge(
52-
roster, hw_exam_grades, left_index=True, right_index=True,
52+
roster,
53+
hw_exam_grades,
54+
left_index=True,
55+
right_index=True,
5356
)
5457
final_data = pd.merge(
5558
final_data, quiz_grades, left_on="Email Address", right_index=True

pandas-gradebook-project/04-grouping-the-data.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,10 @@
4949
# ------------------------
5050

5151
final_data = pd.merge(
52-
roster, hw_exam_grades, left_index=True, right_index=True,
52+
roster,
53+
hw_exam_grades,
54+
left_index=True,
55+
right_index=True,
5356
)
5457
final_data = pd.merge(
5558
final_data, quiz_grades, left_on="Email Address", right_index=True

pandas-gradebook-project/05-plotting-summary-statistics.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@
5151
# ------------------------
5252

5353
final_data = pd.merge(
54-
roster, hw_exam_grades, left_index=True, right_index=True,
54+
roster,
55+
hw_exam_grades,
56+
left_index=True,
57+
right_index=True,
5558
)
5659
final_data = pd.merge(
5760
final_data, quiz_grades, left_on="Email Address", right_index=True

pandas-gradebook-project/06-final-gradebook.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,10 @@
4343
quiz_grades = pd.concat([quiz_grades, quiz], axis=1)
4444

4545
final_data = pd.merge(
46-
roster, hw_exam_grades, left_index=True, right_index=True,
46+
roster,
47+
hw_exam_grades,
48+
left_index=True,
49+
right_index=True,
4750
)
4851
final_data = pd.merge(
4952
final_data, quiz_grades, left_on="Email Address", right_index=True

0 commit comments

Comments
 (0)