use pre-commit to force trailing ending line & remove trailing whitespaces at end of lines

This commit is contained in:
Cuong-Tran 2025-03-24 13:33:03 +07:00
parent 55b9aeca11
commit cca961f6c2
No known key found for this signature in database
GPG key ID: 733AA7624B9315C2
126 changed files with 135 additions and 139 deletions

View file

@ -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):

View file

@ -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, (