Skip to content

Commit be0d490

Browse files
authored
🔧 Maintenance round (#709)
## Description This PR makes several maintenance updates: - Fix `required-checks-pass` job - Use `client-id` instead of `app-id` - Update to new MQSC branding - Improve support for `CLAUDE.md` - Configure Read the Docs to use Python 3.14 for colorful docs - Configure Read the Docs to natively use `uv` ## 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 ef686d6 commit be0d490

8 files changed

Lines changed: 45 additions & 50 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,11 @@ jobs:
7676
with:
7777
allowed-skips: >-
7878
${{
79-
fromJSON(needs.change-detection.outputs.run-python-tests)
80-
&& '' || 'python-tests,python-coverage,python-linter,'
79+
!fromJSON(needs.change-detection.outputs.run-python-tests)
80+
&& 'python-tests,python-coverage,python-linter,' || ''
8181
}}
8282
${{
83-
fromJSON(needs.change-detection.outputs.run-cd)
84-
&& '' || 'build-sdist,build-wheel,'
83+
!fromJSON(needs.change-detection.outputs.run-cd)
84+
&& 'build-sdist,build-wheel' || ''
8585
}}
8686
jobs: ${{ toJSON(needs) }}

.github/workflows/templating.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- id: create-token
2020
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
2121
with:
22-
app-id: ${{ secrets.APP_ID }}
22+
client-id: ${{ secrets.APP_ID }}
2323
private-key: ${{ secrets.APP_PRIVATE_KEY }}
2424
- uses: munich-quantum-toolkit/templates@7fe3464fde16330f8d452127a16e29019d7fc81c # v1.3.1
2525
with:

.gitignore

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
model_*.zip
2-
*.qasm
3-
*.DS_Store
4-
*-checkpoint.ipynb
5-
61
/build*
72
/cmake-build-*
83
.idea/*
@@ -52,4 +47,21 @@ venv.bak/
5247
.ruff_cache/
5348
.mypy_cache/
5449

50+
CLAUDE.md
51+
.claude/
52+
53+
.DS_Store
54+
.DS_Store?
55+
.Spotlight-V100
56+
.Trashes
57+
._*
58+
Thumbs.db
59+
editor.swp
60+
editor~
61+
ehthumbs.db
62+
63+
model_*.zip
64+
*.qasm
65+
*-checkpoint.ipynb
66+
5567
src/**/_version.py

.readthedocs.yaml

Lines changed: 11 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -3,33 +3,17 @@ version: 2
33
formats:
44
- htmlzip
55

6+
sphinx:
7+
configuration: docs/conf.py
8+
69
build:
710
os: ubuntu-24.04
811
tools:
9-
python: "3.12"
10-
jobs:
11-
post_checkout:
12-
# Skip docs build if the commit message contains "skip ci"
13-
- (git --no-pager log --pretty="tformat:%s -- %b" -1 | grep -viq "skip ci") || exit 183
14-
# Skip docs build if there are no changes related to docs
15-
- |
16-
if [ "$READTHEDOCS_VERSION_TYPE" = "external" ] && git diff --quiet origin/main -- docs/ src/mqt/ .github/SUPPORT.md .readthedocs.yaml;
17-
then
18-
exit 183;
19-
fi
20-
# Unshallow the git clone and fetch tags to get proper version information
21-
- git fetch --unshallow --tags
22-
pre_build:
23-
# Set up uv
24-
- asdf plugin add uv
25-
- asdf install uv latest
26-
- asdf global uv latest
27-
build:
28-
html:
29-
- uv run --frozen --no-dev --group docs -m sphinx -T -b html -d docs/_build/doctrees -D language=en docs $READTHEDOCS_OUTPUT/html
30-
htmlzip:
31-
- uv run --frozen --no-dev --group docs -m sphinx -T -b dirhtml -d docs/_build/doctrees -D language=en docs docs/_build/dirhtml
32-
- mkdir -p $READTHEDOCS_OUTPUT/htmlzip
33-
- zip -r $READTHEDOCS_OUTPUT/htmlzip/html.zip docs/_build/dirhtml/*
34-
sphinx:
35-
configuration: docs/conf.py
12+
python: "3.14"
13+
14+
python:
15+
install:
16+
- method: uv
17+
command: sync
18+
groups:
19+
- docs

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ If you have any questions, feel free to create a [discussion](https://github.com
4949

5050
## Contributors and Supporters
5151

52-
The _[Munich Quantum Toolkit (MQT)](https://mqt.readthedocs.io)_ is developed by the [Chair for Design Automation](https://www.cda.cit.tum.de/) at the [Technical University of Munich](https://www.tum.de/) and supported by the [Munich Quantum Software Company (MQSC)](https://munichquantum.software).
52+
The _[Munich Quantum Toolkit (MQT)](https://mqt.readthedocs.io)_ is developed by the [Chair for Design Automation](https://www.cda.cit.tum.de/) at the [Technical University of Munich](https://www.tum.de/) and supported by [MQSC](https://mq.sc).
5353
Among others, it is part of the [Munich Quantum Software Stack (MQSS)](https://www.munich-quantum-valley.de/research/research-areas/mqss) ecosystem, which is being developed as part of the [Munich Quantum Valley (MQV)](https://www.munich-quantum-valley.de) initiative.
5454

5555
<p align="center">

docs/conf.py

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,10 @@
3434
release = version.split("+")[0]
3535

3636
project = "MQT Predictor"
37-
author = "Chair for Design Automation, TUM & Munich Quantum Software Company"
37+
author = "Chair for Design Automation, TUM & Munich Quantum Software Company GmbH"
3838
language = "en"
39-
project_copyright = "2023 - 2026 Chair for Design Automation, TUM & 2025 - 2026 Munich Quantum Software Company"
39+
project_copyright = "2023 - 2026 Chair for Design Automation, TUM & 2025 - 2026 Munich Quantum Software Company GmbH"
40+
4041
# -- General configuration ---------------------------------------------------
4142

4243
master_doc = "index"
@@ -45,19 +46,19 @@
4546
html_css_files = ["custom.css"]
4647

4748
extensions = [
48-
"myst_nb",
4949
"autoapi.extension",
50-
"sphinx.ext.napoleon",
50+
"myst_nb",
51+
"sphinx_copybutton",
52+
"sphinx_design",
5153
"sphinx.ext.autodoc",
54+
"sphinx.ext.autosectionlabel",
5255
"sphinx.ext.autosummary",
53-
"sphinx.ext.mathjax",
56+
"sphinx.ext.githubpages",
5457
"sphinx.ext.intersphinx",
55-
"sphinx.ext.autosectionlabel",
58+
"sphinx.ext.mathjax",
59+
"sphinx.ext.napoleon",
5660
"sphinx.ext.viewcode",
57-
"sphinx.ext.githubpages",
5861
"sphinxcontrib.bibtex",
59-
"sphinx_copybutton",
60-
"sphinx_design",
6162
"sphinxext.opengraph",
6263
]
6364

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ support
5959
```{only} html
6060
## Contributors and Supporters
6161
62-
The _[Munich Quantum Toolkit (MQT)](https://mqt.readthedocs.io)_ is developed by the [Chair for Design Automation](https://www.cda.cit.tum.de/) at the [Technical University of Munich](https://www.tum.de/) and supported by the [Munich Quantum Software Company (MQSC)](https://munichquantum.software).
62+
The _[Munich Quantum Toolkit (MQT)](https://mqt.readthedocs.io)_ is developed by the [Chair for Design Automation](https://www.cda.cit.tum.de/) at the [Technical University of Munich](https://www.tum.de/) and supported by [MQSC](https://mq.sc).
6363
Among others, it is part of the [Munich Quantum Software Stack (MQSS)](https://www.munich-quantum-valley.de/research/research-areas/mqss) ecosystem, which is being developed as part of the [Munich Quantum Valley (MQV)](https://www.munich-quantum-valley.de) initiative.
6464
6565
<div style="margin-top: 0.5em">

src/mqt/predictor/ml/predictor.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
from pathlib import Path
1818
from typing import TYPE_CHECKING, Any
1919

20-
import matplotlib.pyplot as plt
2120
import numpy as np
2221
from joblib import Parallel, delayed, load
2322
from joblib import dump as joblib_dump
@@ -51,7 +50,6 @@
5150

5251
from mqt.predictor.reward import figure_of_merit
5352

54-
plt.rcParams["font.family"] = "Times New Roman"
5553

5654
logger = logging.getLogger("mqt-predictor")
5755

0 commit comments

Comments
 (0)