1
0
Fork 0

🎨 Format Python code with Black

This commit is contained in:
Salamandar 2024-03-24 21:19:46 +00:00
parent f120776ef6
commit 710dc6caa7

View file

@ -99,9 +99,20 @@ def add_deprecation_dates(file: Path) -> None:
def date_added_to(match: str, file: Path) -> int | None: def date_added_to(match: str, file: Path) -> int | None:
commits = Repo(REPO_APPS_ROOT).git.log( commits = (
"-S", match, "--first-parent", "--reverse", Repo(REPO_APPS_ROOT)
"--date=unix", "--format=%cd", "--", str(file)).splitlines() .git.log(
"-S",
match,
"--first-parent",
"--reverse",
"--date=unix",
"--format=%cd",
"--",
str(file),
)
.splitlines()
)
if not commits: if not commits:
return None return None