Skip to content
Closed
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
14 changes: 7 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ repos:

## Check the pyproject.toml file
- repo: https://github.com/henryiii/validate-pyproject-schema-store
rev: 2026.03.15
rev: 2026.04.03
hooks:
- id: validate-pyproject
priority: 0

## Check JSON schemata
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.37.0
rev: 0.37.1
hooks:
- id: check-github-workflows
priority: 0
Expand All @@ -56,14 +56,14 @@ repos:

## Check for spelling
- repo: https://github.com/adhtruong/mirrors-typos
rev: v1.44.0
rev: v1.45.0
hooks:
- id: typos
priority: 0

## Check best practices for scientific Python code
- repo: https://github.com/scientific-python/cookie
rev: 2026.03.02
rev: 2026.04.04
hooks:
- id: sp-repo-review
additional_dependencies: ["repo-review[cli]"]
Expand All @@ -78,7 +78,7 @@ repos:

## Ensure uv lock file is up-to-date
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.11.2
rev: 0.11.3
hooks:
- id: uv-lock
priority: 0
Expand Down Expand Up @@ -114,7 +114,7 @@ repos:

## Python linting using ruff
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.7
rev: v0.15.9
hooks:
- id: ruff-format
priority: 1
Expand Down Expand Up @@ -147,7 +147,7 @@ repos:

## Static type checking using mypy (needs to run after lockfile update/ruff format, and ruff lint)
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.19.1
rev: v1.20.0
hooks:
- id: mypy
files: ^(src/mqt|tests|noxfile.py)
Expand Down
3 changes: 1 addition & 2 deletions src/mqt/problemsolver/tsp.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,7 @@ def encode_eigenstate(
for i in range(len(eigen_register)):
if eigenstate[i] == "1":
qc.x(eigen_register[i])
if eigenstate[i] == "0":
pass
eigenstate[i] == "0"
qc.barrier()
return qc

Expand Down
Loading