diff --git a/.github/workflows/analysis-coverage.yml b/.github/workflows/analysis-coverage.yml index 0575f475..22cd2099 100644 --- a/.github/workflows/analysis-coverage.yml +++ b/.github/workflows/analysis-coverage.yml @@ -32,10 +32,7 @@ jobs: python-version: '3.12' - name: Install Libheif - run: | - brew update - brew install libheif - brew upgrade libheif + run: brew install libheif - name: Install from source run: python3 -m pip install ".[dev]" wheel setuptools @@ -148,10 +145,7 @@ jobs: python-version: '3.10' - name: Install Libheif - run: | - brew update - brew install libheif - brew upgrade libheif + run: brew install libheif - name: Install from source run: python3 -m pip -v install ".[dev]" @@ -188,10 +182,7 @@ jobs: python-version: '3.11' - name: Install Libheif - run: | - brew update - brew install libheif - brew upgrade libheif + run: brew install libheif - name: Install from source run: python3 -m pip -v install ".[dev]" @@ -391,10 +382,7 @@ jobs: python-version: '3.12' - name: Install Libheif - run: | - brew update - brew install libheif - brew upgrade libheif + run: brew install libheif - name: Install from source run: | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2038f672..ee70c190 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -24,12 +24,12 @@ repos: - id: black - repo: https://github.com/tox-dev/pyproject-fmt - rev: 2.4.3 + rev: v2.5.0 hooks: - id: pyproject-fmt - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.7.0 + rev: v0.8.1 hooks: - id: ruff 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",