@@ -235,9 +235,11 @@ def draw_commit(self, commit, i, prevCircle, shift=numpy.array([0.0, 0.0, 0.0]))
235
235
commit_fill = m .RED
236
236
else :
237
237
commit_fill = m .GRAY
238
-
238
+
239
239
circle = m .Circle (
240
- stroke_color = commit_fill , fill_color = commit_fill , fill_opacity = self .fill_opacity
240
+ stroke_color = commit_fill ,
241
+ fill_color = commit_fill ,
242
+ fill_opacity = self .fill_opacity ,
241
243
)
242
244
circle .height = 1
243
245
@@ -320,14 +322,25 @@ def draw_commit(self, commit, i, prevCircle, shift=numpy.array([0.0, 0.0, 0.0]))
320
322
self .play (
321
323
self .camera .frame .animate .move_to (circle .get_center ()),
322
324
m .Create (circle ),
323
- m .Text ("" ) if settings .highlight_commit_messages else m .AddTextLetterByLetter (commitId ),
325
+ m .Text ("" )
326
+ if settings .highlight_commit_messages
327
+ else m .AddTextLetterByLetter (commitId ),
324
328
m .AddTextLetterByLetter (message ),
325
329
run_time = 1 / settings .speed ,
326
330
)
327
331
elif isNewCommit :
328
- self .add (circle , m .Text ("" ) if settings .highlight_commit_messages else commitId , message )
332
+ self .add (
333
+ circle ,
334
+ m .Text ("" ) if settings .highlight_commit_messages else commitId ,
335
+ message ,
336
+ )
329
337
else :
330
- return m .Text ("" ) if settings .highlight_commit_messages else commitId , circle , arrow , hide_refs
338
+ return (
339
+ m .Text ("" ) if settings .highlight_commit_messages else commitId ,
340
+ circle ,
341
+ arrow ,
342
+ hide_refs ,
343
+ )
331
344
332
345
if commit != "dark" :
333
346
self .drawnCommits [commit .hexsha ] = circle
@@ -369,7 +382,9 @@ def build_commit_id_and_message(self, commit, i):
369
382
370
383
def draw_head (self , commit , i , commitId ):
371
384
if commit .hexsha == self .repo .head .commit .hexsha :
372
- headbox = m .Rectangle (color = m .BLUE , fill_color = m .BLUE , fill_opacity = self .ref_fill_opacity )
385
+ headbox = m .Rectangle (
386
+ color = m .BLUE , fill_color = m .BLUE , fill_opacity = self .ref_fill_opacity
387
+ )
373
388
headbox .width = 1
374
389
headbox .height = 0.4
375
390
if settings .highlight_commit_messages :
@@ -960,7 +975,9 @@ def setup_and_draw_parent(
960
975
draw_arrow = True ,
961
976
color = m .RED ,
962
977
):
963
- circle = m .Circle (stroke_color = color , fill_color = color , fill_opacity = self .ref_fill_opacity )
978
+ circle = m .Circle (
979
+ stroke_color = color , fill_color = color , fill_opacity = self .ref_fill_opacity
980
+ )
964
981
circle .height = 1
965
982
circle .next_to (
966
983
self .drawnCommits [child .hexsha ],
0 commit comments