Skip to content
This repository was archived by the owner on Mar 13, 2024. It is now read-only.

Commit c7f83dd

Browse files
OCoppingcoretl
authored andcommitted
Fixed formatting
1 parent aca10fd commit c7f83dd

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

src/dls_python3_skeleton/__main__.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,15 +86,17 @@ def replace_text(text: str) -> str:
8686
git_tmp("pull", SKELETON, "skeleton")
8787
# Move things around
8888
git_tmp("mv", "src/dls_python3_skeleton", f"src/{package}")
89-
git_tmp("mv", "tests/test_dls_python3_skeleton.py",
90-
f"tests/test_{package}.py")
89+
git_tmp(
90+
"mv", "tests/test_dls_python3_skeleton.py", f"tests/test_{package}.py"
91+
)
9192
# Change contents of all children known to git
9293
for relative_child in git_tmp("ls-files").splitlines():
9394
child = Path(git_tmp.name) / relative_child
9495
if child.suffix in CHANGE_SUFFIXES and child.name not in IGNORE_FILES:
9596
text = child.read_text()
96-
start_search, end_search = IGNORE_RANGES.get(child.name,
97-
(None, None))
97+
start_search, end_search = IGNORE_RANGES.get(
98+
child.name, (None, None)
99+
)
98100
if start_search:
99101
start_ignore = text.find(start_search)
100102
assert start_ignore > 0, f"{start_search} not in {child.name}"
@@ -187,8 +189,9 @@ def clean_repo(args):
187189
assert path.is_dir(), f"Expected {path} to be an existing directory"
188190

189191
branches = [x[2:] for x in str(git("branch", "--list")).split("\n")]
190-
assert "skeleton-merge-branch" in branches, \
191-
"Expected skeleton-merge-branch to be in existing repo"
192+
assert (
193+
"skeleton-merge-branch" in branches,
194+
), "Expected skeleton-merge-branch to be in existing repo"
192195

193196
git("branch", "-D", "skeleton-merge-branch")
194197
print("skeleton-merge-branch deleted from existing repo")

0 commit comments

Comments
 (0)