Skip to content

Commit 63841a8

Browse files
authored
🔧 Maintenance round (#306)
## 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] 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 8895508 commit 63841a8

7 files changed

Lines changed: 24 additions & 31 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: 6 additions & 6 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
@@ -112,8 +112,8 @@ jobs:
112112
[
113113
ubuntu-24.04,
114114
ubuntu-24.04-arm,
115-
macos-15,
116-
macos-15-intel,
115+
macos-26,
116+
macos-26-intel,
117117
windows-2025,
118118
]
119119
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-tests.yml@b59d15aa4f266e713afad51e132bde6e3a28a6b3 # v1.18.1
@@ -154,8 +154,8 @@ jobs:
154154
[
155155
ubuntu-24.04,
156156
ubuntu-24.04-arm,
157-
macos-15,
158-
macos-15-intel,
157+
macos-26,
158+
macos-26-intel,
159159
windows-2025,
160160
windows-11-arm,
161161
]

.license-tools-config.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
".*\\.profile",
3636
"uv\\.lock",
3737
"py\\.typed",
38-
".*build.*"
38+
".*build.*",
39+
"LICENSE"
3940
]
4041
}

.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 mypy (needs to run after lockfile update/ruff format, and ruff lint)
155147
- repo: https://github.com/pre-commit/mirrors-mypy
156148
rev: v1.20.0
File renamed without changes.

pyproject.toml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
[build-system]
1010
requires = [
1111
"nanobind~=2.12.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.0",
1515
]
@@ -26,7 +26,7 @@ authors = [
2626

2727
keywords = ["MQT", "quantum-computing", "design-automation", "qudits"]
2828
license = "MIT"
29-
license-files = ["LICENSE.md"]
29+
license-files = ["LICENSE"]
3030

3131
classifiers = [
3232
"Development Status :: 4 - Beta",
@@ -194,6 +194,7 @@ show-fixes = true
194194
src = ["python"]
195195

196196
[tool.ruff.format]
197+
preview = true
197198
docstring-code-format = true
198199

199200
[tool.ruff.lint]
@@ -279,12 +280,11 @@ anc = "anc"
279280
mone = "mone"
280281

281282

282-
[tool.repo-review]
283-
ignore = [
284-
"GH200", # We use Renovate instead of Dependabot
285-
"PC160", # We use a mirror of crate-ci/typos
286-
"PC170", # We do not use rST files anymore
287-
]
283+
[tool.repo-review.ignore]
284+
GH200 = "We use Renovate instead of Dependabot"
285+
PC111 = "We use ruff instead of blacken-docs"
286+
PC160 = "We use a mirror of crate-ci/typos"
287+
PC170 = "We do not use rST files anymore"
288288

289289

290290
[tool.cibuildwheel]
@@ -335,7 +335,7 @@ mqt-qudits = { workspace = true }
335335
[dependency-groups]
336336
build = [
337337
"nanobind~=2.12.0",
338-
"scikit-build-core>=0.11.6",
338+
"scikit-build-core>=0.12.2",
339339
"setuptools-scm>=9.2.2",
340340
"mqt.core~=3.4.0",
341341
]

uv.lock

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

0 commit comments

Comments
 (0)