Skip to content

Commit

Permalink
👷 Maintenance (#44)
Browse files Browse the repository at this point in the history
This PR updates the configuration of the project so that it continues to
work as planned.

As part of this PR, it also works around the issues with warning filters
for pytest which previously led to the disabling of the
warnings-as-errors setting.
This already revealed a couple of warnings that probably need to be
addressed in the near term future.

This PR also adds a `uv` lockfile which should unblock CD.
  • Loading branch information
burgholzer authored Nov 6, 2024
2 parents 129143c + c2db0c9 commit 5f4c2a8
Show file tree
Hide file tree
Showing 3 changed files with 3,118 additions and 27 deletions.
17 changes: 0 additions & 17 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
"sphinx.ext.githubpages",
"sphinxcontrib.bibtex",
"sphinx_copybutton",
"hoverxref.extension",
"nbsphinx",
"sphinxext.opengraph",
"sphinx_autodoc_typehints",
Expand Down Expand Up @@ -84,22 +83,6 @@

autosectionlabel_prefix_document = True

hoverxref_auto_ref = True
hoverxref_domains = ["cite", "py"]
hoverxref_roles = []
hoverxref_mathjax = True
hoverxref_role_types = {
"ref": "tooltip",
"p": "tooltip",
"labelpar": "tooltip",
"class": "tooltip",
"meth": "tooltip",
"func": "tooltip",
"attr": "tooltip",
"property": "tooltip",
}
exclude_patterns = ["_build", "build", "**.ipynb_checkpoints", "Thumbs.db", ".DS_Store", ".env"]


class CDAStyle(UnsrtStyle):
"""Custom style for including PDF links."""
Expand Down
28 changes: 18 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ dynamic = ["version"]
dependencies = [
"qiskit>=1.0",
"qiskit_optimization>=0.6",
"qiskit_aer>=0.14",
"qiskit_aer>=0.15",
"pandas>=2.1.2",
"numpy>=1.26",
"qubovert>=1.2.5",
Expand Down Expand Up @@ -54,17 +54,14 @@ classifiers = [
test = ["pytest>=7.2"]
coverage = ["mqt.qao[test]", "pytest-cov>=4"]
docs = [
"furo>=2023.08.17",
"sphinx>=7.0",
"setuptools-scm>=7",
"furo>=2023.9.10",
"setuptools-scm>=8.1",
"sphinxcontrib-bibtex>=2.4.2",
"sphinx-copybutton",
"sphinx-hoverxref",
"pybtex>=0.24",
"sphinx-copybutton>=0.5",
"ipython",
"ipykernel",
"nbsphinx",
"sphinxext-opengraph",
"sphinxext-opengraph>=0.9",
"sphinx-autodoc-typehints",
"qiskit[visualization]",
]
Expand All @@ -87,8 +84,19 @@ addopts = ["-ra", "--strict-markers", "--strict-config", "--showlocals"]
log_cli_level = "info"
xfail_strict = true
filterwarnings = [
# "error", # Temporarily disabled because of https://github.com/cda-tum/mqt-qao/issues/3. Uncomment when fixed.
"ignore:.*Qiskit with Python 3.8.*:DeprecationWarning:",
"error",
"ignore:.*invalid escape sequence.*::.*docplex.*", # See https://github.com/cda-tum/mqt-qao/issues/3
"ignore:.*invalid escape sequence.*::.*dwave.*", # See https://github.com/cda-tum/mqt-qao/issues/3
"ignore:.*invalid escape sequence.*::.*homebase.*", # See https://github.com/cda-tum/mqt-qao/issues/3
"ignore:.*invalid escape sequence.*::.*plucky.*", # See https://github.com/cda-tum/mqt-qao/issues/3
"ignore:.*numpy.core.shape_base.*::", # See https://github.com/cda-tum/mqt-qao/issues/3
# The warning filters below are only temporary and should be removed once the usage of the Sampler and Estimator is updated
"ignore:.*BaseSamplerV1.*:DeprecationWarning:",
"ignore:.*BaseEstimatorV1.*:DeprecationWarning:",
'ignore:.*qiskit\.primitives\.utils.*:DeprecationWarning:',
# The RandomForest classifier has been trained with sklearn 1.4.1.post1, which might not be compatible with newer versions
'ignore:.*Trying to unpickle.*:sklearn.exceptions.InconsistentVersionWarning:',
'ignore:.*X does not have valid feature names.*:UserWarning:',
]


Expand Down
Loading

0 comments on commit 5f4c2a8

Please sign in to comment.