diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 772746904e1..97ab4a9d16b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.16.1 + rev: v0.16.6 hooks: - id: ruff-check args: [--exit-non-zero-on-fix] @@ -24,7 +24,7 @@ repos: exclude: (Makefile$|\.bat$|\.cmake$|\.eps$|\.fits$|\.gd$|\.opt$|\.patch$) - repo: https://github.com/pre-commit/mirrors-clang-format - rev: v22.1.8 + rev: v23.1.0 hooks: - id: clang-format types: [c] @@ -57,14 +57,14 @@ repos: exclude: ^\.github/.*TEMPLATE|^Tests/(fonts|images)/|\.patch$ - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.37.4 + rev: 0.38.0 hooks: - id: check-github-workflows - id: check-readthedocs - id: check-renovate - repo: https://github.com/zizmorcore/zizmor-pre-commit - rev: v1.29.0 + rev: v1.30.0 hooks: - id: zizmor @@ -74,18 +74,18 @@ repos: - id: sphinx-lint - repo: https://github.com/tox-dev/pyproject-fmt - rev: v2.26.0 + rev: v2.29.3 hooks: - id: pyproject-fmt - repo: https://github.com/abravalheri/validate-pyproject - rev: v0.25 + rev: '0.26' hooks: - id: validate-pyproject additional_dependencies: [trove-classifiers>=2024.10.12] - repo: https://github.com/tox-dev/tox-ini-fmt - rev: 1.8.1 + rev: 1.9.0 hooks: - id: tox-ini-fmt diff --git a/pyproject.toml b/pyproject.toml index 16d82d46711..e7adc432c86 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -106,7 +106,9 @@ test-extras = "tests" # Disable platform guessing on macOS to avoid picking up Homebrew etc. macos.config-settings = "raqm=enable raqm=vendor fribidi=vendor imagequant=disable platform-guessing=disable" # Isolate macOS build environment from Homebrew etc. -macos.environment.PATH = "$(pwd)/build/deps/darwin/bin:$(dirname $(which python3)):/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin" +macos.environment.PATH = """\ + $(pwd)/build/deps/darwin/bin:$(dirname $(which python3)):/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin\ + """ # Disable platform guessing on iOS, and disable raqm (since there won't be a # vendor version, and we can't distribute it due to licensing) ios.config-settings = "raqm=disable imagequant=disable platform-guessing=disable" @@ -212,13 +214,13 @@ testpaths = [ ] [tool.coverage] -run.core = "sysmon" # default for 3.14+, available for 3.12+ -run.disable_warnings = [ "no-sysmon" ] # 3.11 run.omit = [ "checks/*.py", "Tests/benchmarks.py", "Tests/createfontdatachunk.py", ] +run.disable_warnings = [ "no-sysmon" ] # 3.11 +run.core = "sysmon" # default for 3.14+, available for 3.12+ report.exclude_also = [ "@abc.abstractmethod", # Empty bodies in protocols or abstract methods