test: Enable ruff E713 lint

This commit is contained in:
MarcoFalke committed 2025-12-26 08:19:34 +01:00
1 parent 315fdb4066
commit fab300b378
10 files changed
+18 -17

No files matched your search

+1 -1
View File
@@ -172,7 +172,7 @@ PE_ALLOWED_LIBRARIES = {
def check_version(max_versions, version, arch) -> bool:
(lib, _, ver) = version.rpartition('_')
ver = tuple([int(x) for x in ver.split('.')])
if not lib in max_versions:
if lib not in max_versions:
return False
if isinstance(max_versions[lib], tuple):
return ver <= max_versions[lib]