Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -170,5 +170,5 @@ repos:
rev: v0.0.84
hooks:
- id: ty
args: [--only-dev]
args: [--all-extras, --no-install-project]
priority: 8
4 changes: 2 additions & 2 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ build:
- uv pip install cmake
build:
html:
- Z3_ROOT=~/z3-4.13.4-x64-glibc-2.35 uv run --frozen --no-dev --no-build-isolation-package mqt-qmap -m sphinx -T -b html -d docs/_build/doctrees -D language=en docs $READTHEDOCS_OUTPUT/html
- Z3_ROOT=~/z3-4.13.4-x64-glibc-2.35 uv run --frozen --no-dev --all-extras --no-build-isolation-package mqt-qmap -m sphinx -T -b html -d docs/_build/doctrees -D language=en docs $READTHEDOCS_OUTPUT/html
htmlzip:
- Z3_ROOT=~/z3-4.13.4-x64-glibc-2.35 uv run --frozen --no-dev --no-build-isolation-package mqt-qmap -m sphinx -T -b dirhtml -d docs/_build/doctrees -D language=en docs docs/_build/dirhtml
- Z3_ROOT=~/z3-4.13.4-x64-glibc-2.35 uv run --frozen --no-dev --all-extras --no-build-isolation-package mqt-qmap -m sphinx -T -b dirhtml -d docs/_build/doctrees -D language=en docs docs/_build/dirhtml
- mkdir -p $READTHEDOCS_OUTPUT/htmlzip
- zip -r $READTHEDOCS_OUTPUT/htmlzip/html.zip docs/_build/dirhtml/*
4 changes: 3 additions & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def _run_tests(
install_args: Sequence[str] = (),
extra_command: Sequence[str] = (),
pytest_run_args: Sequence[str] = (),
optional_dependencies: Sequence[str] = ("--extra", "photonics"),
optional_dependencies: Sequence[str] = (),
) -> None:
env = {"UV_PROJECT_ENVIRONMENT": session.virtualenv.location}
if shutil.which("cmake") is None:
Expand All @@ -89,6 +89,7 @@ def _run_tests(
"sync",
"--inexact",
"--no-dev", # do not auto-install dev dependencies
"--all-extras",
"--no-build-isolation-package",
"mqt-qmap", # build the project without isolation
*optional_dependencies,
Expand Down Expand Up @@ -195,6 +196,7 @@ def docs(session: nox.Session) -> None:
"uv",
"run",
"--no-dev", # do not auto-install dev dependencies
"--all-extras",
"--no-build-isolation-package",
"mqt-qmap", # build the project without isolation
"sphinx-autobuild" if serve else "sphinx-build",
Expand Down
19 changes: 2 additions & 17 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ visualization = [
"walkerlayout>=1.0.2",
]
photonics = [
"torch!=2.14; sys_platform=='linux' and platform_machine=='aarch64'",
"torch!=2.14,!=2.14.1; sys_platform=='linux' and platform_machine=='aarch64'",
"torch>=2.9",
]

Expand All @@ -101,28 +101,15 @@ dev = [
"nox>=2025.11.12",
]
test = [
"distinctipy>=1.3.4",
"ipywidgets>=8.1.7",
"mqt-qcec>=3.10",
"networkx>=3.2.1",
"plotly>=6.0.1",
"pytest>=9.0.1",
"pytest-cov>=7.1",
"pytest-sugar>=1.1.1",
"pytest-xdist>=3.8",
"qiskit[qasm3-import]>=2.1,<3",
"rustworkx[all]>=0.16",
"torch!=2.14; sys_platform=='linux' and platform_machine=='aarch64'",
"torch>=2.9",
"walkerlayout>=1.0.2",
]
docs = [
"distinctipy>=1.3.4",
"furo>=2025.12.19",
"ipywidgets>=8.1.7",
"myst-nb>=1.4",
"networkx>=3.2.1",
"plotly>=6.0.1",
"qiskit[qasm3-import,visualization]>=2.1,<3",
"sphinx>=9",
"sphinx-autoapi>=3.6",
Expand All @@ -131,9 +118,6 @@ docs = [
"sphinx-llm>=1",
"sphinxcontrib-bibtex>=2.7",
"sphinxext-opengraph>=0.13",
"torch!=2.14; sys_platform=='linux' and platform_machine=='aarch64'",
"torch>=2.9",
"walkerlayout>=1.0.2",
]
build = [
"cmake>=4.4.1",
Expand Down Expand Up @@ -236,6 +220,7 @@ skip = [ "*-musllinux_*", "cp314t-*" ]
archs = "auto64"
build-frontend = "uv"
test-command = "pytest test/python"
test-extras = [ "photonics", "visualization" ]
test-groups = [ "test" ]
test-sources = [
"test",
Expand Down
Loading
Loading