Skip to content

Commit 92abccd

Browse files
committed
Merge branch 'master' into sh_merge_master
2 parents cfe7356 + 86a6429 commit 92abccd

File tree

19 files changed

+371
-82
lines changed

19 files changed

+371
-82
lines changed

.github/labeler.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
docs:
2-
- any:
3-
- 'docs/**/*.rst'
4-
- '!docs/changelog.rst'
5-
- '!docs/upgrade.rst'
2+
all:
3+
- changed-files:
4+
- all-globs-to-all-files:
5+
- '!docs/changelog.rst'
6+
- '!docs/upgrade.rst'
7+
- base-branch: "^(?!dependabot).*"
8+
- base-branch: "^(?!pre-commit-ci).*"
69

710
ci:
8-
- '.github/workflows/*.yml'
11+
- changed-files:
12+
- any-glob-to-any-file:
13+
- '.github/workflows/*.yml'

.github/labeler_merged.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# Add 'needs changelog` label to any change to code files as long as the `CHANGELOG` hasn't changed
2+
# Skip dependabot and pre-commit-ci PRs
13
needs changelog:
2-
- all:
3-
- '!docs/changelog.rst'
4+
- all:
5+
- changed-files:
6+
- all-globs-to-all-files: "!docs/changelog.rst"
7+
- base-branch: "^(?!dependabot).*"
8+
- base-branch: "^(?!pre-commit-ci).*"

.github/workflows/ci.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,12 @@ jobs:
3131
strategy:
3232
fail-fast: false
3333
matrix:
34-
runs-on: [ubuntu-20.04, windows-2022, macos-latest]
34+
runs-on: [ubuntu-20.04, windows-2022, macos-13]
3535
python:
3636
- '3.6'
3737
- '3.9'
38-
- '3.10'
39-
- '3.11'
4038
- '3.12'
39+
- '3.13'
4140
- 'pypy-3.8'
4241
- 'pypy-3.9'
4342
- 'pypy-3.10'
@@ -65,6 +64,10 @@ jobs:
6564
# Inject a couple Windows 2019 runs
6665
- runs-on: windows-2019
6766
python: '3.9'
67+
# Extra ubuntu latest job
68+
- runs-on: ubuntu-latest
69+
python: '3.11'
70+
6871

6972
name: "🐍 ${{ matrix.python }} • ${{ matrix.runs-on }} • x64 ${{ matrix.args }}"
7073
runs-on: ${{ matrix.runs-on }}
@@ -76,6 +79,7 @@ jobs:
7679
uses: actions/setup-python@v5
7780
with:
7881
python-version: ${{ matrix.python }}
82+
allow-prereleases: true
7983

8084
- name: Setup Boost (Linux)
8185
# Can't use boost + define _
@@ -973,7 +977,6 @@ jobs:
973977
mingw-w64-${{matrix.env}}-cmake
974978
mingw-w64-${{matrix.env}}-make
975979
mingw-w64-${{matrix.env}}-python-pytest
976-
mingw-w64-${{matrix.env}}-eigen3
977980
mingw-w64-${{matrix.env}}-boost
978981
mingw-w64-${{matrix.env}}-catch
979982
@@ -984,6 +987,7 @@ jobs:
984987
install: >-
985988
git
986989
mingw-w64-${{matrix.env}}-python-scipy
990+
mingw-w64-${{matrix.env}}-eigen3
987991
988992
- uses: actions/checkout@v4
989993

@@ -1119,8 +1123,8 @@ jobs:
11191123
run: git clean -fdx
11201124

11211125
macos_brew_install_llvm:
1122-
name: "macos-latest • brew install llvm"
1123-
runs-on: macos-latest
1126+
name: "macos-13 • brew install llvm"
1127+
runs-on: macos-13
11241128

11251129
env:
11261130
# https://apple.stackexchange.com/questions/227026/how-to-install-recent-clang-with-homebrew

.github/workflows/configure.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
strategy:
2626
fail-fast: false
2727
matrix:
28-
runs-on: [ubuntu-20.04, macos-latest, windows-latest]
28+
runs-on: [ubuntu-20.04, macos-13, windows-latest]
2929
arch: [x64]
3030
cmake: ["3.26"]
3131

@@ -38,7 +38,7 @@ jobs:
3838
arch: x64
3939
cmake: "3.29"
4040

41-
- runs-on: macos-latest
41+
- runs-on: macos-13
4242
arch: x64
4343
cmake: "3.7"
4444

.github/workflows/labeler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
pull-requests: write
1515
steps:
1616

17-
- uses: actions/labeler@v4
17+
- uses: actions/labeler@v5
1818
if: >
1919
github.event.pull_request.merged == true &&
2020
!startsWith(github.event.pull_request.title, 'chore(deps):') &&

.pre-commit-config.yaml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,22 +25,22 @@ repos:
2525

2626
# Clang format the codebase automatically
2727
- repo: https://github.com/pre-commit/mirrors-clang-format
28-
rev: "v18.1.2"
28+
rev: "v18.1.5"
2929
hooks:
3030
- id: clang-format
3131
types_or: [c++, c, cuda]
3232

3333
# Ruff, the Python auto-correcting linter/formatter written in Rust
3434
- repo: https://github.com/astral-sh/ruff-pre-commit
35-
rev: v0.3.5
35+
rev: v0.4.5
3636
hooks:
3737
- id: ruff
3838
args: ["--fix", "--show-fixes"]
3939
- id: ruff-format
4040

4141
# Check static types with mypy
4242
- repo: https://github.com/pre-commit/mirrors-mypy
43-
rev: "v1.9.0"
43+
rev: "v1.10.0"
4444
hooks:
4545
- id: mypy
4646
args: []
@@ -62,7 +62,7 @@ repos:
6262

6363
# Standard hooks
6464
- repo: https://github.com/pre-commit/pre-commit-hooks
65-
rev: "v4.5.0"
65+
rev: "v4.6.0"
6666
hooks:
6767
- id: check-added-large-files
6868
- id: check-case-conflict
@@ -79,7 +79,7 @@ repos:
7979
exclude: \.patch?$
8080

8181
# Also code format the docs
82-
- repo: https://github.com/asottile/blacken-docs
82+
- repo: https://github.com/adamchainz/blacken-docs
8383
rev: "1.16.0"
8484
hooks:
8585
- id: blacken-docs
@@ -121,11 +121,11 @@ repos:
121121
# Use tools/codespell_ignore_lines_from_errors.py
122122
# to rebuild .codespell-ignore-lines
123123
- repo: https://github.com/codespell-project/codespell
124-
rev: "v2.2.6"
124+
rev: "v2.3.0"
125125
hooks:
126126
- id: codespell
127127
exclude: ".supp$"
128-
args: ["-x.codespell-ignore-lines", "-Lccompiler"]
128+
args: ["-x.codespell-ignore-lines", "-Lccompiler,intstruct"]
129129

130130
# Check for common shell mistakes
131131
- repo: https://github.com/shellcheck-py/shellcheck-py
@@ -144,13 +144,14 @@ repos:
144144

145145
# PyLint has native support - not always usable, but works for us
146146
- repo: https://github.com/PyCQA/pylint
147-
rev: "v3.1.0"
147+
rev: "v3.2.2"
148148
hooks:
149149
- id: pylint
150150
files: ^pybind11
151151

152+
# Check schemas on some of our YAML files
152153
- repo: https://github.com/python-jsonschema/check-jsonschema
153-
rev: 0.28.1
154+
rev: 0.28.4
154155
hooks:
155156
- id: check-readthedocs
156157
- id: check-github-workflows

docs/advanced/pycpp/numpy.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,8 +378,6 @@ uses of ``py::array``:
378378

379379
- ``.itemsize()`` returns the size of an item in bytes, i.e. ``sizeof(T)``.
380380

381-
- ``.ndim()`` returns the number of dimensions.
382-
383381
- ``.shape(n)`` returns the size of dimension ``n``
384382

385383
- ``.size()`` returns the total number of elements (i.e. the product of the shapes).

docs/changelog.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ IN DEVELOPMENT
1515

1616
Changes will be summarized here periodically.
1717

18-
Version 2.12.0 (March 27, 2025)
18+
Version 2.12.0 (March 27, 2024)
1919
-------------------------------
2020

2121
New Features:

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
#
8282
# This is also used if you do content translation via gettext catalogs.
8383
# Usually you set "language" from the command line for these cases.
84-
language = None
84+
language = "en"
8585

8686
# There are two options for replacing |today|: either, you set today to some
8787
# non-false value, then it is used:

docs/requirements.in

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
breathe
2+
furo
3+
sphinx
4+
sphinx-copybutton
5+
sphinxcontrib-moderncmakedomain
6+
sphinxcontrib-svg2pdfconverter

0 commit comments

Comments
 (0)