diff --git a/pyproject.toml b/pyproject.toml index 932b696..e5953ce 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,10 +10,10 @@ name = "mqt.qao" description = "MQT Quantum Auto Optimizer: Automatic Framework for Solving Optimization Problems with Quantum Computers" readme = "README.md" authors = [ - { name = "Deborah Volpe", email = "deborah.volpe@polito.it"}, + { name = "Deborah Volpe", email = "deborah.volpe@polito.it" }, { name = "Nils Quetschlich", email = "nils.quetschlich@tum.de" }, ] -keywords = ["MQT", "quantum-computing", "optimization", "QUBO"] +keywords = ["MQT", "quantum-computing", "optimization", "QUBO"] license = { file = "LICENSE" } requires-python = ">=3.9" dynamic = ["version"] @@ -85,19 +85,23 @@ addopts = ["-ra", "--strict-markers", "--strict-config", "--showlocals"] log_cli_level = "info" xfail_strict = true filterwarnings = [ - "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:', + "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:', + # Qiskit 1.3 deprecations + 'ignore:.*The property ``qiskit.dagcircuit.dagcircuit.DAGCircuit.*`` is deprecated as of qiskit 1.3.0.*:DeprecationWarning:qiskit.*', + 'ignore:.*The class ``qiskit.circuit.library.n_local.two_local.*`` is deprecated as of Qiskit 1.3.*:DeprecationWarning:qiskit.*', + 'ignore:.*is pending deprecation as of qiskit 1.3..*:PendingDeprecationWarning:', ] @@ -218,7 +222,7 @@ isort.required-imports = ["from __future__ import annotations"] "noxfile.py" = ["T20", "TID251"] "*.pyi" = ["D418", "PYI021"] # pydocstyle "*.ipynb" = [ - "D", # pydocstyle + "D", # pydocstyle "E402", # Allow imports to appear anywhere in Jupyter notebooks "I002", # Allow missing `from __future__ import annotations` import ] @@ -229,7 +233,7 @@ convention = "google" [tool.typos] default.extend-ignore-re = [ - "(?Rm)^.*(#|//)\\s*spellchecker:disable-line$", # ignore line + "(?Rm)^.*(#|//)\\s*spellchecker:disable-line$", # ignore line "(?s)(#|//)\\s*spellchecker:off.*?\\n\\s*(#|//)\\s*spellchecker:on" # ignore block ] default.extend-ignore-identifiers-re = [