use pre-commit to force trailing ending line & remove trailing whitespaces at end of lines
This commit is contained in:
parent
55b9aeca11
commit
cca961f6c2
126 changed files with 135 additions and 139 deletions
2
.github/scripts/bump-versions.py
vendored
2
.github/scripts/bump-versions.py
vendored
|
@ -42,7 +42,7 @@ def bump_version(file: Path):
|
|||
print(f"\n{file}: ", end="")
|
||||
text = VERSION_REGEX.sub(replace_version, f.read())
|
||||
# Move the cursor to the start again, to prevent writing at the end
|
||||
f.seek(0)
|
||||
f.seek(0)
|
||||
f.write(text)
|
||||
|
||||
def bump_lib_multisrc(theme: str):
|
||||
|
|
2
.github/scripts/create-repo.py
vendored
2
.github/scripts/create-repo.py
vendored
|
@ -40,7 +40,7 @@ for apk in REPO_APK_DIR.iterdir():
|
|||
).decode()
|
||||
|
||||
package_info = next(x for x in badging.splitlines() if x.startswith("package: "))
|
||||
package_name = PACKAGE_NAME_REGEX.search(package_info).group(1)
|
||||
package_name = PACKAGE_NAME_REGEX.search(package_info).group(1)
|
||||
application_icon = APPLICATION_ICON_320_REGEX.search(badging).group(1)
|
||||
|
||||
with ZipFile(apk) as z, z.open(application_icon) as i, (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue