Upgrade to the latest Ruff version (#10433)

This commit is contained in:
Charlie Marsh 2025-01-09 10:47:25 -05:00 committed by GitHub
parent 15ec830bea
commit 359ef288f8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 20 additions and 20 deletions

View file

@ -269,9 +269,9 @@ def update_common_mod_rs(packse_version: str):
url_matcher = re.compile(
re.escape(before_version) + '[^"]+' + re.escape(after_version)
)
assert (
len(url_matcher.findall(test_common)) == 1
), f"PACKSE_VERSION not found in {TESTS_COMMON_MOD_RS}"
assert len(url_matcher.findall(test_common)) == 1, (
f"PACKSE_VERSION not found in {TESTS_COMMON_MOD_RS}"
)
test_common = url_matcher.sub(build_vendor_links_url, test_common)
TESTS_COMMON_MOD_RS.write_text(test_common)