🎨 Format Python code with Black
This commit is contained in:
parent
f120776ef6
commit
710dc6caa7
1 changed files with 16 additions and 5 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue