diff --git a/libheif/linux_build_libs.py b/libheif/linux_build_libs.py index 653a2d70..b21a5b60 100644 --- a/libheif/linux_build_libs.py +++ b/libheif/linux_build_libs.py @@ -77,7 +77,7 @@ def tool_check_version(name: str, min_version: str) -> bool: def check_install_nasm(version: str): - if not match("(i[3-6]86|x86_64)$", machine()): + if not match(r"(i[3-6]86|x86_64)$", machine()): return True if tool_check_version("nasm", version): return True diff --git a/pyproject.toml b/pyproject.toml index 96b3e5c7..1601f4cb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -100,6 +100,7 @@ lint.extend-per-file-ignores."libheif/**/*.py" = [ "D", "PERF", "S", + "SIM905", ] lint.extend-per-file-ignores."tests/**/*.py" = [ "B009",