Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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]
Expand All @@ -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]
Expand Down Expand Up @@ -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

Expand All @@ -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'
Comment thread
radarhere marked this conversation as resolved.
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

Expand Down
8 changes: 5 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down