diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 06ef681..94325b6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -58,7 +58,7 @@ repos: # Python linting using ruff - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.6.1 + rev: v0.6.4 hooks: - id: ruff args: ["--fix", "--show-fixes"] @@ -68,7 +68,7 @@ repos: # Static type checking using mypy - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.11.1 + rev: v1.11.2 hooks: - id: mypy files: ^(src/mqt|tests) @@ -93,7 +93,7 @@ repos: # Check for spelling - repo: https://github.com/crate-ci/typos - rev: v1.23.6 + rev: v1.24.5 hooks: - id: typos @@ -108,14 +108,14 @@ repos: # Check best practices for scientific Python code - repo: https://github.com/scientific-python/cookie - rev: 2024.04.23 + rev: 2024.08.19 hooks: - id: sp-repo-review additional_dependencies: ["repo-review[cli]"] # Check JSON schemata - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.29.1 + rev: 0.29.2 hooks: - id: check-dependabot - id: check-github-workflows @@ -123,6 +123,6 @@ repos: # Check the pyproject.toml file - repo: https://github.com/henryiii/validate-pyproject-schema-store - rev: 2024.08.08 + rev: 2024.08.26 hooks: - id: validate-pyproject diff --git a/pyproject.toml b/pyproject.toml index 14e4fc4..8963bca 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -22,7 +22,6 @@ dependencies = [ "qiskit>=1.0", "qiskit_optimization>=0.6", "qiskit_aer>=0.14", - "qiskit_aer<0.14.1; python_version < '3.10'", # temporarily upper cap because of https://github.com/Qiskit/qiskit-aer/issues/2167 "pandas>=2.1.2", "numpy>=1.26", "qubovert>=1.2.5", @@ -140,7 +139,6 @@ ignore_missing_imports = true [tool.ruff] line-length = 120 -src = ["src"] preview = true unsafe-fixes = true diff --git a/src/mqt/qao/solvers.py b/src/mqt/qao/solvers.py index aa3955c..b83995f 100644 --- a/src/mqt/qao/solvers.py +++ b/src/mqt/qao/solvers.py @@ -1265,7 +1265,7 @@ def check_constraint_optimal_solution(self, weak: bool = False) -> tuple[bool, l Return values: constraints_satisfy -- bool which is equal to True if all the constraints are satisfied - single_constraint_satisfy -- list of bool, saying which are the satisfied constraint and which are not + single_constraint_satisfy -- list of bool, saying which are the satisfied constraint and which are not satisfied """ self.constraints_satisfy, self.single_constraint_satisfy = self.problem.constraints.check_constraint(