Skip to content

Commit 2d4bc04

Browse files
[pre-commit.ci] pre-commit autoupdate (#9648)
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
1 parent 1ba93c6 commit 2d4bc04

2 files changed

Lines changed: 23 additions & 23 deletions

File tree

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
3-
rev: v0.15.12
3+
rev: v0.15.15
44
hooks:
55
- id: ruff-check
66
args: [--exit-non-zero-on-fix]
77

88
- repo: https://github.com/psf/black-pre-commit-mirror
9-
rev: 26.3.1
9+
rev: 26.5.1
1010
hooks:
1111
- id: black
1212

@@ -24,7 +24,7 @@ repos:
2424
exclude: (Makefile$|\.bat$|\.cmake$|\.eps$|\.fits$|\.gd$|\.opt$|\.patch$)
2525

2626
- repo: https://github.com/pre-commit/mirrors-clang-format
27-
rev: v22.1.4
27+
rev: v22.1.5
2828
hooks:
2929
- id: clang-format
3030
types: [c]
@@ -61,7 +61,7 @@ repos:
6161
- id: check-renovate
6262

6363
- repo: https://github.com/zizmorcore/zizmor-pre-commit
64-
rev: v1.24.1
64+
rev: v1.25.2
6565
hooks:
6666
- id: zizmor
6767

@@ -71,7 +71,7 @@ repos:
7171
- id: sphinx-lint
7272

7373
- repo: https://github.com/tox-dev/pyproject-fmt
74-
rev: v2.21.1
74+
rev: v2.23.0
7575
hooks:
7676
- id: pyproject-fmt
7777

pyproject.toml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -91,46 +91,46 @@ urls.Source = "https://github.com/python-pillow/Pillow"
9191
packages = [
9292
"PIL",
9393
]
94-
include-package-data = true
9594
package-dir = { "" = "src" }
95+
include-package-data = true
9696
dynamic.version = { attr = "PIL.__version__" }
9797

9898
[tool.cibuildwheel]
99-
before-all = ".github/workflows/wheels-dependencies.sh"
10099
build-verbosity = 1
101100
config-settings = "raqm=enable raqm=vendor fribidi=vendor imagequant=disable"
101+
before-all = ".github/workflows/wheels-dependencies.sh"
102102
test-command = "cd {project} && .github/workflows/wheels-test.sh"
103-
test-extras = "tests"
104103
test-requires = [
105104
"numpy",
106105
]
107-
xbuild-tools = []
106+
test-extras = "tests"
107+
# Disable platform guessing on macOS to avoid picking up Homebrew etc.
108+
macos.config-settings = "raqm=enable raqm=vendor fribidi=vendor imagequant=disable platform-guessing=disable"
109+
# Isolate macOS build environment from Homebrew etc.
110+
macos.environment.PATH = "$(pwd)/build/deps/darwin/bin:$(dirname $(which python3)):/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin"
108111
# Disable platform guessing on iOS, and disable raqm (since there won't be a
109112
# vendor version, and we can't distribute it due to licensing)
110113
ios.config-settings = "raqm=disable imagequant=disable platform-guessing=disable"
111114
# iOS needs to be given a specific pytest invocation and list of test sources.
112-
ios.test-sources = [
113-
"checks",
114-
"Tests",
115-
"selftest.py",
116-
]
117115
ios.test-command = [
118116
"python -m selftest",
119117
"python -m pytest -vv -x -W always checks/check_wheel.py Tests",
120118
]
121119
# There's no numpy wheel for iOS (yet...)
122120
ios.test-requires = []
123-
# Disable platform guessing on macOS to avoid picking up Homebrew etc.
124-
macos.config-settings = "raqm=enable raqm=vendor fribidi=vendor imagequant=disable platform-guessing=disable"
125-
# Isolate macOS build environment from Homebrew etc.
126-
macos.environment.PATH = "$(pwd)/build/deps/darwin/bin:$(dirname $(which python3)):/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin"
121+
ios.test-sources = [
122+
"checks",
123+
"Tests",
124+
"selftest.py",
125+
]
127126
overrides = [
128127
# iOS environment is isolated by cibuildwheel, but needs the dependencies
129128
{ select = "*_iphoneos", environment.PATH = "$(pwd)/build/deps/iphoneos/bin:$PATH" },
130129
# iOS simulator environment is isolated by cibuildwheel, but needs the dependencies
131130
{ select = "*_iphonesimulator", environment.PATH = "$(pwd)/build/deps/iphonesimulator/bin:$PATH" },
132131
{ select = "*-win32", test-requires = [] },
133132
]
133+
xbuild-tools = []
134134

135135
[tool.black]
136136
exclude = "wheels/multibuild"
@@ -187,16 +187,16 @@ lint.isort.required-imports = [
187187
max_supported_python = "3.14"
188188

189189
[tool.mypy]
190+
follow_imports = "silent"
190191
python_version = "3.10"
191-
pretty = true
192192
disallow_any_generics = true
193193
disallow_untyped_defs = true
194-
enable_error_code = "ignore-without-code"
195-
extra_checks = true
196-
follow_imports = "silent"
197194
warn_redundant_casts = true
198-
warn_unreachable = true
199195
warn_unused_ignores = true
196+
warn_unreachable = true
197+
enable_error_code = "ignore-without-code"
198+
extra_checks = true
199+
pretty = true
200200

201201
[tool.pytest]
202202
addopts = [ "-ra", "--color=auto" ]

0 commit comments

Comments
 (0)