From c5112357264b593a9d3e5fd4ea2ef5d6ac485c56 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 2 Dec 2024 22:56:44 +0000 Subject: [PATCH 1/3] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/tox-dev/pyproject-fmt: 2.4.3 → v2.5.0](https://github.com/tox-dev/pyproject-fmt/compare/2.4.3...v2.5.0) - [github.com/astral-sh/ruff-pre-commit: v0.7.0 → v0.8.1](https://github.com/astral-sh/ruff-pre-commit/compare/v0.7.0...v0.8.1) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 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 2/3] 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", From 7b3a04eacc2c2782f95a7a00cc46192baa92242f Mon Sep 17 00:00:00 2001 From: Alexander Piskun Date: Mon, 9 Dec 2024 20:22:58 +0300 Subject: [PATCH 3/3] removed `brew upgrade libheif` (brew already updated libheif) Signed-off-by: Alexander Piskun --- .github/workflows/analysis-coverage.yml | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) 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: |