Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#303)
Browse files Browse the repository at this point in the history
* [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]>
  • Loading branch information
3 people authored Dec 9, 2024
1 parent 0ffb681 commit 55a3d39
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 19 deletions.
20 changes: 4 additions & 16 deletions .github/workflows/analysis-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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]"
Expand Down Expand Up @@ -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]"
Expand Down Expand Up @@ -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: |
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion libheif/linux_build_libs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ lint.extend-per-file-ignores."libheif/**/*.py" = [
"D",
"PERF",
"S",
"SIM905",
]
lint.extend-per-file-ignores."tests/**/*.py" = [
"B009",
Expand Down

0 comments on commit 55a3d39

Please sign in to comment.