Skip to content

Commit 0da2e96

Browse files
authored
🔧 Maintenance round (#988)
## Description This PR combines several maintenance updates: - Update `scikit-build-core` - Use `ruff format` instead of `blacken-docs` - Use `macos-26` and `macos-26-intel` as default macOS runners - Rename `LICENSE.md` to `LICENSE` ## Checklist - [x] ~~The pull request only contains commits that are focused and relevant to this change.~~ - [x] ~~I have added appropriate tests that cover the new/changed functionality.~~ - [x] ~~I have updated the documentation to reflect these changes.~~ - [x] ~~I have added entries to the changelog for any noteworthy additions, changes, fixes, or removals.~~ - [x] ~~I have added migration instructions to the upgrade guide (if needed).~~ - [x] The changes follow the project's style guidelines and introduce no new warnings. - [x] The changes are fully tested and pass the CI checks. - [x] I have reviewed my own code changes.
1 parent e8d7e5e commit 0da2e96

8 files changed

Lines changed: 29 additions & 37 deletions

File tree

.github/workflows/cd.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ jobs:
2626
[
2727
ubuntu-24.04,
2828
ubuntu-24.04-arm,
29-
macos-15,
30-
macos-15-intel,
29+
macos-26,
30+
macos-26-intel,
3131
windows-2025,
3232
windows-11-arm,
3333
]

.github/workflows/ci.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ jobs:
4444
strategy:
4545
fail-fast: false
4646
matrix:
47-
runs-on: [macos-15, macos-15-intel]
47+
runs-on: [macos-26, macos-26-intel]
4848
compiler: [clang]
4949
config: [Release]
5050
include:
51-
- runs-on: macos-15
51+
- runs-on: macos-26
5252
compiler: clang
5353
config: Debug
5454
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-cpp-tests-macos.yml@b59d15aa4f266e713afad51e132bde6e3a28a6b3 # v1.18.1
@@ -106,7 +106,7 @@ jobs:
106106
strategy:
107107
fail-fast: false
108108
matrix:
109-
runs-on: [macos-14, macos-15, macos-15-intel]
109+
runs-on: [macos-15, macos-15-intel, macos-26, macos-26-intel]
110110
compiler: [clang, clang-20, clang-21, gcc-14, gcc-15]
111111
config: [Release, Debug]
112112
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-cpp-tests-macos.yml@b59d15aa4f266e713afad51e132bde6e3a28a6b3 # v1.18.1
@@ -171,8 +171,8 @@ jobs:
171171
[
172172
ubuntu-24.04,
173173
ubuntu-24.04-arm,
174-
macos-15,
175-
macos-15-intel,
174+
macos-26,
175+
macos-26-intel,
176176
windows-2025,
177177
]
178178
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-tests.yml@b59d15aa4f266e713afad51e132bde6e3a28a6b3 # v1.18.1
@@ -197,7 +197,7 @@ jobs:
197197
strategy:
198198
fail-fast: false
199199
matrix:
200-
runs-on: [macos-14, windows-2022]
200+
runs-on: [macos-15, macos-15-intel, windows-2022]
201201
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-tests.yml@b59d15aa4f266e713afad51e132bde6e3a28a6b3 # v1.18.1
202202
with:
203203
runs-on: ${{ matrix.runs-on }}
@@ -231,8 +231,8 @@ jobs:
231231
[
232232
ubuntu-24.04,
233233
ubuntu-24.04-arm,
234-
macos-15,
235-
macos-15-intel,
234+
macos-26,
235+
macos-26-intel,
236236
windows-2025,
237237
windows-11-arm,
238238
]

.github/workflows/upstream.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
strategy:
1919
fail-fast: false
2020
matrix:
21-
runs-on: [ubuntu-24.04, macos-15, windows-2025]
21+
runs-on: [ubuntu-24.04, macos-26, windows-2025]
2222
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-qiskit-upstream-tests.yml@b59d15aa4f266e713afad51e132bde6e3a28a6b3 # v1.18.1
2323
with:
2424
runs-on: ${{ matrix.runs-on }}

.license-tools-config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,6 @@
3838
"uv\\.lock",
3939
"py\\.typed",
4040
".*build.*",
41-
"qmap_patterns.txt"
41+
"LICENSE"
4242
]
4343
}

.pre-commit-config.yaml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ repos:
112112
types_or: [c++, c, cuda]
113113
priority: 1
114114

115-
## CMake format and lint the CMakeLists.txt files
115+
## Format the CMakeLists.txt files
116116
- repo: https://github.com/cheshirekow/cmake-format-precommit
117117
rev: v0.6.13
118118
hooks:
@@ -127,30 +127,22 @@ repos:
127127
rev: v3.8.1
128128
hooks:
129129
- id: prettier
130-
types_or: [yaml, markdown, html, css, scss, javascript, json]
130+
types_or: [yaml, markdown, html, css, scss, javascript, json, json5]
131131
priority: 1
132132

133133
## Python linting using ruff
134134
- repo: https://github.com/astral-sh/ruff-pre-commit
135135
rev: v0.15.9
136136
hooks:
137137
- id: ruff-format
138+
types_or: [python, pyi, jupyter, markdown]
138139
priority: 1
139140
- id: ruff-check
140141
require_serial: true
141142
priority: 2
142143

143144
# Priority 2+: Final checks and fixers
144145

145-
## Also run Black on examples in the documentation (needs to run after ruff format)
146-
- repo: https://github.com/adamchainz/blacken-docs
147-
rev: 1.20.0
148-
hooks:
149-
- id: blacken-docs
150-
language: python
151-
additional_dependencies: [black==26.*]
152-
priority: 2
153-
154146
## Static type checking using ty (needs to run after lockfile update/ruff format, and ruff lint)
155147
- repo: local
156148
hooks:
File renamed without changes.

pyproject.toml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
requires = [
1111
"nanobind~=2.11.0",
1212
"setuptools-scm>=9.2.2",
13-
"scikit-build-core>=0.11.6",
13+
"scikit-build-core>=0.12.2",
1414
"mqt.core~=3.4.1",
1515
]
1616
build-backend = "scikit_build_core.build"
@@ -28,7 +28,7 @@ authors = [
2828
]
2929
keywords = ["MQT", "quantum-computing", "design-automation", "compiler", "clifford-synthesis"]
3030
license = "MIT"
31-
license-files = ["LICENSE.md"]
31+
license-files = ["LICENSE"]
3232

3333
classifiers = [
3434
"Development Status :: 5 - Production/Stable",
@@ -203,6 +203,7 @@ show-fixes = true
203203
src = ["python"]
204204

205205
[tool.ruff.format]
206+
preview = true
206207
docstring-code-format = true
207208

208209
[tool.ruff.lint]
@@ -298,14 +299,13 @@ iz = "iz"
298299
ket = "ket"
299300

300301

301-
[tool.repo-review]
302-
ignore = [
303-
"GH200", # We use Renovate instead of Dependabot
304-
"MY100", # We use ty instead of mypy
305-
"PC140", # We use ty instead of mypy
306-
"PC160", # We use a mirror of crate-ci/typos
307-
"PC170", # We do not use rST files anymore
308-
]
302+
[tool.repo-review.ignore]
303+
GH200 = "We use Renovate instead of Dependabot"
304+
MY100 = "We use ty instead of mypy"
305+
PC111 = "We use ruff instead of blacken-docs"
306+
PC140 = "We use ty instead of mypy"
307+
PC160 = "We use a mirror of crate-ci/typos"
308+
PC170 = "We do not use rST files anymore"
309309

310310

311311
[tool.cibuildwheel]
@@ -385,7 +385,7 @@ exclude = [
385385
build = [
386386
"nanobind~=2.11.0",
387387
"setuptools-scm>=9.2.2",
388-
"scikit-build-core>=0.11.6",
388+
"scikit-build-core>=0.12.2",
389389
"mqt.core~=3.4.1",
390390
]
391391
docs = [

uv.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)