Skip to content

Commit 55a3d39

Browse files
[pre-commit.ci] pre-commit autoupdate (#303)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/tox-dev/pyproject-fmt: 2.4.3 → v2.5.0](tox-dev/pyproject-fmt@2.4.3...v2.5.0) - [github.com/astral-sh/ruff-pre-commit: v0.7.0 → v0.8.1](astral-sh/ruff-pre-commit@v0.7.0...v0.8.1) * fixed `ruff` complains Signed-off-by: Alexander Piskun <[email protected]> * removed `brew upgrade libheif` (brew already updated libheif) Signed-off-by: Alexander Piskun <[email protected]> --------- Signed-off-by: Alexander Piskun <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Alexander Piskun <[email protected]> Co-authored-by: Alexander Piskun <[email protected]>
1 parent 0ffb681 commit 55a3d39

File tree

4 files changed

+8
-19
lines changed

4 files changed

+8
-19
lines changed

.github/workflows/analysis-coverage.yml

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,7 @@ jobs:
3232
python-version: '3.12'
3333

3434
- name: Install Libheif
35-
run: |
36-
brew update
37-
brew install libheif
38-
brew upgrade libheif
35+
run: brew install libheif
3936

4037
- name: Install from source
4138
run: python3 -m pip install ".[dev]" wheel setuptools
@@ -148,10 +145,7 @@ jobs:
148145
python-version: '3.10'
149146

150147
- name: Install Libheif
151-
run: |
152-
brew update
153-
brew install libheif
154-
brew upgrade libheif
148+
run: brew install libheif
155149

156150
- name: Install from source
157151
run: python3 -m pip -v install ".[dev]"
@@ -188,10 +182,7 @@ jobs:
188182
python-version: '3.11'
189183

190184
- name: Install Libheif
191-
run: |
192-
brew update
193-
brew install libheif
194-
brew upgrade libheif
185+
run: brew install libheif
195186

196187
- name: Install from source
197188
run: python3 -m pip -v install ".[dev]"
@@ -391,10 +382,7 @@ jobs:
391382
python-version: '3.12'
392383

393384
- name: Install Libheif
394-
run: |
395-
brew update
396-
brew install libheif
397-
brew upgrade libheif
385+
run: brew install libheif
398386

399387
- name: Install from source
400388
run: |

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ repos:
2424
- id: black
2525

2626
- repo: https://github.com/tox-dev/pyproject-fmt
27-
rev: 2.4.3
27+
rev: v2.5.0
2828
hooks:
2929
- id: pyproject-fmt
3030

3131
- repo: https://github.com/astral-sh/ruff-pre-commit
32-
rev: v0.7.0
32+
rev: v0.8.1
3333
hooks:
3434
- id: ruff
3535

libheif/linux_build_libs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def tool_check_version(name: str, min_version: str) -> bool:
7777

7878

7979
def check_install_nasm(version: str):
80-
if not match("(i[3-6]86|x86_64)$", machine()):
80+
if not match(r"(i[3-6]86|x86_64)$", machine()):
8181
return True
8282
if tool_check_version("nasm", version):
8383
return True

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ lint.extend-per-file-ignores."libheif/**/*.py" = [
100100
"D",
101101
"PERF",
102102
"S",
103+
"SIM905",
103104
]
104105
lint.extend-per-file-ignores."tests/**/*.py" = [
105106
"B009",

0 commit comments

Comments
 (0)