diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9aa9b0b..d3deac0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,7 +19,7 @@ jobs: uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-change-detection.yml@973217bac3ad300d9982fffdd3b37a9b5b3a51ea # v2.2.1 cpp-tests-ubuntu: - name: 🇨‌ Test 🐧 + name: 🇨 Test 🐧 needs: change-detection if: fromJSON(needs.change-detection.outputs.run-cpp-tests) strategy: @@ -39,7 +39,7 @@ jobs: preset-name: ${{ matrix.preset }} cpp-tests-macos: - name: 🇨‌ Test 🍎 + name: 🇨 Test 🍎 needs: change-detection if: fromJSON(needs.change-detection.outputs.run-cpp-tests) strategy: @@ -59,7 +59,7 @@ jobs: preset-name: ${{ matrix.preset }} cpp-tests-windows: - name: 🇨‌ Test 🏁 + name: 🇨 Test 🏁 needs: change-detection if: fromJSON(needs.change-detection.outputs.run-cpp-tests) strategy: @@ -79,7 +79,7 @@ jobs: preset-name: ${{ matrix.preset }} cpp-linter: - name: 🇨‌ Lint + name: 🇨 Lint needs: change-detection if: fromJSON(needs.change-detection.outputs.run-cpp-linter) uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-cpp-linter.yml@973217bac3ad300d9982fffdd3b37a9b5b3a51ea # v2.2.1 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4dc3bcf..34301c3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -108,7 +108,7 @@ repos: types_or: [yaml, html, css, scss, javascript, json, json5] priority: 5 - ## Format Markdown files with rumdl + ## Format Markdown files with rumdl - repo: https://github.com/rvben/rumdl-pre-commit rev: v0.2.43 hooks: diff --git a/docs/conf.py b/docs/conf.py index f2bb9db..4dff837 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -62,6 +62,7 @@ "myst_nb", "sphinx_copybutton", "sphinx_design", + "sphinx_llm.txt", "sphinx.ext.autodoc", "sphinx.ext.intersphinx", "sphinx.ext.napoleon", diff --git a/noxfile.py b/noxfile.py index 4341964..5596984 100755 --- a/noxfile.py +++ b/noxfile.py @@ -97,9 +97,6 @@ def _run_tests( ) if extra_command: session.run(*extra_command, env=env) - if "--cov" in session.posargs: - # try to use the lighter-weight `sys.monitoring` coverage core - env["COVERAGE_CORE"] = "sysmon" session.run( "uv", "run", diff --git a/pyproject.toml b/pyproject.toml index 40ceea9..9d0b193 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -139,6 +139,8 @@ filterwarnings = [ [tool.coverage] run.source = ["mqt.debugger"] +run.core = "sysmon" +run.parallel = true report.exclude_also = [ '\.\.\.', 'if TYPE_CHECKING:', @@ -304,7 +306,7 @@ build = [ ] test = [ "pytest>=9.0.1", - "pytest-cov>=7.0.0", + "pytest-cov>=7.1.0", "pytest-console-scripts>=1.4.1", "pytest-sugar>=1.1.1", "pytest-xdist>=3.8.0", @@ -327,6 +329,7 @@ docs = [ "sphinx>=8.2.3; python_version >= '3.11'", "sphinx-copybutton>=0.5.2", "sphinx-design>=0.6.1", + "sphinx-llm", "sphinx-hoverxref>=1.4.2", "sphinxcontrib-bibtex>=2.6.5", "sphinxcontrib-svg2pdfconverter>=1.3.0", diff --git a/uv.lock b/uv.lock index ddd92fa..bc0fa5f 100644 --- a/uv.lock +++ b/uv.lock @@ -1719,6 +1719,7 @@ docs = [ { name = "sphinx-design", version = "0.6.1", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11'" }, { name = "sphinx-design", version = "0.7.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11'" }, { name = "sphinx-hoverxref" }, + { name = "sphinx-llm" }, { name = "sphinxcontrib-bibtex" }, { name = "sphinxcontrib-svg2pdfconverter" }, { name = "sphinxext-opengraph" }, @@ -1762,7 +1763,7 @@ dev = [ { name = "numpy", marker = "python_full_version >= '3.14'", specifier = ">=2.3.2" }, { name = "pytest", specifier = ">=9.0.1" }, { name = "pytest-console-scripts", specifier = ">=1.4.1" }, - { name = "pytest-cov", specifier = ">=7.0.0" }, + { name = "pytest-cov", specifier = ">=7.1.0" }, { name = "pytest-sugar", specifier = ">=1.1.1" }, { name = "pytest-xdist", specifier = ">=3.8.0" }, { name = "qiskit", specifier = ">=1.2.4" }, @@ -1786,6 +1787,7 @@ docs = [ { name = "sphinx-copybutton", specifier = ">=0.5.2" }, { name = "sphinx-design", specifier = ">=0.6.1" }, { name = "sphinx-hoverxref", specifier = ">=1.4.2" }, + { name = "sphinx-llm" }, { name = "sphinxcontrib-bibtex", specifier = ">=2.6.5" }, { name = "sphinxcontrib-svg2pdfconverter", specifier = ">=1.3.0" }, { name = "sphinxext-opengraph", specifier = ">=0.10.0" }, @@ -1795,7 +1797,7 @@ test = [ { name = "numpy", marker = "python_full_version >= '3.14'", specifier = ">=2.3.2" }, { name = "pytest", specifier = ">=9.0.1" }, { name = "pytest-console-scripts", specifier = ">=1.4.1" }, - { name = "pytest-cov", specifier = ">=7.0.0" }, + { name = "pytest-cov", specifier = ">=7.1.0" }, { name = "pytest-sugar", specifier = ">=1.1.1" }, { name = "pytest-xdist", specifier = ">=3.8.0" }, { name = "qiskit", specifier = ">=1.2.4" }, @@ -3711,6 +3713,38 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/19/3b/d981175d7b9bbbcf6894faf640d15198394efc7dedd6182332c4a791a5a6/sphinx_hoverxref-1.4.2-py2.py3-none-any.whl", hash = "sha256:4fc2e283e908d9df61ea9196589934944a7e2e6e3cb753a420b938cd6d14e220", size = 32198, upload-time = "2024-11-18T18:01:31.473Z" }, ] +[[package]] +name = "sphinx-llm" +version = "0.4.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "sphinx", version = "8.1.3", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11'" }, + { name = "sphinx", version = "9.0.4", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version == '3.11.*'" }, + { name = "sphinx", version = "9.1.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.12'" }, + { name = "sphinx-markdown-builder" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/59/23/fe184bf9c6761c2cd04dc5b5456b717f626143663a3004f628636a2f7b0e/sphinx_llm-0.4.1.tar.gz", hash = "sha256:0789185dcbbecc00b5e25aa3db6342b98dad6a9def96088a9e50fa0203fda090", size = 280250, upload-time = "2026-04-02T09:09:18.881Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/31/2b/a54c49b42b25a6eb6039daf882f06488812c28e32734e944b2f7b6f82554/sphinx_llm-0.4.1-py3-none-any.whl", hash = "sha256:d7c8ee2a6335636b628ea2b26cd1e1dee1f0cf9c40fe51b20f201af1c05b95f5", size = 28453, upload-time = "2026-04-02T09:09:17.632Z" }, +] + +[[package]] +name = "sphinx-markdown-builder" +version = "0.6.10" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "docutils", version = "0.21.2", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11'" }, + { name = "docutils", version = "0.22.4", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11'" }, + { name = "sphinx", version = "8.1.3", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11'" }, + { name = "sphinx", version = "9.0.4", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version == '3.11.*'" }, + { name = "sphinx", version = "9.1.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.12'" }, + { name = "tabulate" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/a0/58/0b7b9a7d071140b3705885d51932e8b62f520388c2772e4952189971727b/sphinx_markdown_builder-0.6.10.tar.gz", hash = "sha256:cd5acf88d52ea0146a712fd557404f10326dff3428a78ba928e59b1727fd4a86", size = 22688, upload-time = "2026-03-11T10:56:57.639Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/c2/8f/9fecf3d081d5cd49eff83a17b9fef50ed741e6223ab3bb906de4ab0068f9/sphinx_markdown_builder-0.6.10-py3-none-any.whl", hash = "sha256:16d86738b9ac69fcbc86e373c31c6402c30af1fa8d98d0f62cc5f38bfe5fc26e", size = 16700, upload-time = "2026-03-11T10:56:56.135Z" }, +] + [[package]] name = "sphinxcontrib-applehelp" version = "2.0.0"