Skip to content

Commit c0e8c6c

Browse files
Format with black
Signed-off-by: Jacob Stopak <jacob@initialcommit.io>
1 parent ac2bb32 commit c0e8c6c

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

git_sim/git_sim_base_command.py

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,9 @@ def parse_commits(
9595
if commit != "dark":
9696
if not hide_refs and isNewCommit:
9797
self.draw_head(commit, i, commitId)
98-
self.draw_branch(commit, i, make_branches_remote=make_branches_remote)
98+
self.draw_branch(
99+
commit, i, make_branches_remote=make_branches_remote
100+
)
99101
self.draw_tag(commit, i)
100102
if (
101103
not isinstance(arrow, m.CurvedArrow)
@@ -382,7 +384,14 @@ def draw_branch(self, commit, i, make_branches_remote=False):
382384
self.is_remote_tracking_branch(branch) # remote tracking branch
383385
and commit.hexsha == remote_tracking_branches[branch]
384386
):
385-
text = (make_branches_remote + "/" + branch) if (make_branches_remote and not self.is_remote_tracking_branch(branch)) else branch
387+
text = (
388+
(make_branches_remote + "/" + branch)
389+
if (
390+
make_branches_remote
391+
and not self.is_remote_tracking_branch(branch)
392+
)
393+
else branch
394+
)
386395

387396
branchText = m.Text(
388397
text, font="Monospace", font_size=20, color=self.fontColor
@@ -893,7 +902,6 @@ def reset_branch(self, hexsha, shift=numpy.array([0.0, 0.0, 0.0])):
893902
)
894903
)
895904

896-
897905
def reset_head_branch_to_ref(self, ref, shift=numpy.array([0.0, 0.0, 0.0])):
898906
if settings.animate:
899907
self.play(self.drawnRefs["HEAD"].animate.next_to(ref, m.UP))
@@ -1071,7 +1079,6 @@ def create_zone_text(
10711079
thirdColumnTitle,
10721080
horizontal2,
10731081
):
1074-
10751082
for i, f in enumerate(firstColumnFileNames):
10761083
text = (
10771084
m.Text(

git_sim/stash.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ def populate_zones(
145145
secondColumnArrowMap={},
146146
thirdColumnArrowMap={},
147147
):
148-
149148
if self.command in [StashSubCommand.POP, StashSubCommand.APPLY]:
150149
for x in self.repo.index.diff(None):
151150
thirdColumnFileNames.add(x.a_path)

0 commit comments

Comments
 (0)