Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

⬆️πŸͺ update pre-commit hooks #30

Merged
merged 11 commits into from
Sep 13, 2024
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand All @@ -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)
Expand All @@ -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

Expand All @@ -108,21 +108,21 @@ 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
- id: check-readthedocs

# 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
2 changes: 0 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -140,7 +139,6 @@ ignore_missing_imports = true

[tool.ruff]
line-length = 120
src = ["src"]
preview = true
unsafe-fixes = true

Expand Down
2 changes: 1 addition & 1 deletion src/mqt/qao/solvers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
Loading