Skip to content

Commit a3667d2

Browse files
authored
🔧 Maintenance round (#901)
## 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 0c104c2 commit a3667d2

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
@@ -43,11 +43,11 @@ jobs:
4343
strategy:
4444
fail-fast: false
4545
matrix:
46-
runs-on: [macos-15, macos-15-intel]
46+
runs-on: [macos-26, macos-26-intel]
4747
compiler: [clang]
4848
config: [Release]
4949
include:
50-
- runs-on: macos-15
50+
- runs-on: macos-26
5151
compiler: clang
5252
config: Debug
5353
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-cpp-tests-macos.yml@b59d15aa4f266e713afad51e132bde6e3a28a6b3 # v1.18.1
@@ -102,7 +102,7 @@ jobs:
102102
strategy:
103103
fail-fast: false
104104
matrix:
105-
runs-on: [macos-14, macos-15, macos-15-intel]
105+
runs-on: [macos-15, macos-15-intel, macos-26, macos-26-intel]
106106
compiler: [clang, clang-20, clang-21, gcc-14, gcc-15]
107107
config: [Release, Debug]
108108
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-cpp-tests-macos.yml@b59d15aa4f266e713afad51e132bde6e3a28a6b3 # v1.18.1
@@ -163,8 +163,8 @@ jobs:
163163
[
164164
ubuntu-24.04,
165165
ubuntu-24.04-arm,
166-
macos-15,
167-
macos-15-intel,
166+
macos-26,
167+
macos-26-intel,
168168
windows-2025,
169169
]
170170
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-tests.yml@b59d15aa4f266e713afad51e132bde6e3a28a6b3 # v1.18.1
@@ -188,7 +188,7 @@ jobs:
188188
strategy:
189189
fail-fast: false
190190
matrix:
191-
runs-on: [macos-14, windows-2022]
191+
runs-on: [macos-15, macos-15-intel, windows-2022]
192192
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-tests.yml@b59d15aa4f266e713afad51e132bde6e3a28a6b3 # v1.18.1
193193
with:
194194
runs-on: ${{ matrix.runs-on }}
@@ -220,8 +220,8 @@ jobs:
220220
[
221221
ubuntu-24.04,
222222
ubuntu-24.04-arm,
223-
macos-15,
224-
macos-15-intel,
223+
macos-26,
224+
macos-26-intel,
225225
windows-2025,
226226
windows-11-arm,
227227
]

.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
@@ -35,6 +35,6 @@
3535
"uv\\.lock",
3636
"py\\.typed",
3737
".*build.*",
38-
"qcec_patterns.txt"
38+
"LICENSE"
3939
]
4040
}

.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
@@ -9,7 +9,7 @@
99
[build-system]
1010
requires = [
1111
"nanobind~=2.11.0",
12-
"scikit-build-core>=0.11.6",
12+
"scikit-build-core>=0.12.2",
1313
"setuptools-scm>=9.2.2",
1414
"mqt.core~=3.4.1",
1515
]
@@ -25,7 +25,7 @@ authors = [
2525
]
2626
keywords = ["MQT", "quantum-computing", "design-automation", "equivalence-checking", "verification"]
2727
license = "MIT"
28-
license-files = ["LICENSE.md"]
28+
license-files = ["LICENSE"]
2929

3030
classifiers = [
3131
"Development Status :: 5 - Production/Stable",
@@ -201,6 +201,7 @@ show-fixes = true
201201
src = ["python"]
202202

203203
[tool.ruff.format]
204+
preview = true
204205
docstring-code-format = true
205206

206207
[tool.ruff.lint]
@@ -288,14 +289,13 @@ anc = "anc"
288289
aer = "aer"
289290

290291

291-
[tool.repo-review]
292-
ignore = [
293-
"GH200", # We use Renovate instead of Dependabot
294-
"MY100", # We use ty instead of mypy
295-
"PC140", # We use ty instead of mypy
296-
"PC160", # We use a mirror of crate-ci/typos
297-
"PC170", # We do not use rST files anymore
298-
]
292+
[tool.repo-review.ignore]
293+
GH200 = "We use Renovate instead of Dependabot"
294+
MY100 = "We use ty instead of mypy"
295+
PC111 = "We use ruff instead of blacken-docs"
296+
PC140 = "We use ty instead of mypy"
297+
PC160 = "We use a mirror of crate-ci/typos"
298+
PC170 = "We do not use rST files anymore"
299299

300300

301301
[tool.cibuildwheel]
@@ -361,7 +361,7 @@ mqt-qcec = { workspace = true }
361361
[dependency-groups]
362362
build = [
363363
"nanobind~=2.11.0",
364-
"scikit-build-core>=0.11.6",
364+
"scikit-build-core>=0.12.2",
365365
"setuptools-scm>=9.2.2",
366366
"mqt.core~=3.4.1",
367367
]

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)