Skip to content

Commit 6b1dd78

Browse files
Fix formatting flagged by ruff (pre-commit.ci)
1 parent 837a4f0 commit 6b1dd78

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

git/objects/commit.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,7 @@ def iter_parents(self, paths: Union[PathLike, Sequence[PathLike]] = "", **kwargs
368368
kwargs["skip"] = skip
369369

370370
return self.iter_items(self.repo, self, paths, **kwargs)
371+
371372
@property
372373
def is_shallow(self) -> bool:
373374
"""Check whether this commit is a shallow boundary (graft) commit.
@@ -389,7 +390,7 @@ def is_shallow(self) -> bool:
389390
return False
390391
with open(shallow_file, "r") as f:
391392
return self.hexsha in f.read().split()
392-
393+
393394
@property
394395
def stats(self) -> Stats:
395396
"""Create a git stat from changes between this commit and its first parent

test/test_commit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def check_entries(d, has_change_type=False):
163163
self.assertEqual(commit.author_tz_offset, 14400, commit.author_tz_offset)
164164
self.assertEqual(commit.committer_tz_offset, 14400, commit.committer_tz_offset)
165165
self.assertEqual(commit.message, "initial project\n")
166-
166+
167167
@with_rw_directory
168168
def test_is_shallow(self, rw_dir):
169169
"""A commit at the shallow boundary should report is_shallow, and

0 commit comments

Comments
 (0)