From 239bdcd06f36cd58b8335485a4922a9c94f9de77 Mon Sep 17 00:00:00 2001 From: Alexander Piskun <13381981+bigcat88@users.noreply.github.com> Date: Mon, 9 Dec 2024 20:12:12 +0300 Subject: [PATCH] fixed `ruff` complains Signed-off-by: Alexander Piskun --- libheif/linux_build_libs.py | 2 +- pyproject.toml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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",