Skip to content

Commit

Permalink
⬆️🪝 update pre-commit hooks (#355)
Browse files Browse the repository at this point in the history
<!--pre-commit.ci start-->
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.5.1 →
v0.5.4](astral-sh/ruff-pre-commit@v0.5.1...v0.5.4)
- [github.com/pre-commit/mirrors-mypy: v1.10.1 →
v1.11.0](pre-commit/mirrors-mypy@v1.10.1...v1.11.0)
<!--pre-commit.ci end-->

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Nils Quetschlich <Nils.Quetschlich@tum.de>
  • Loading branch information
pre-commit-ci[bot] and nquetschlich authored Jul 22, 2024
1 parent c9a7042 commit fd8e9f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ repos:
types_or: [yaml, markdown, html, css, javascript, json]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.1
rev: v0.5.4
hooks:
- id: ruff
args: ["--fix", "--show-fixes"]
Expand All @@ -80,7 +80,7 @@ repos:
additional_dependencies: [black==24.*]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.10.1
rev: v1.11.0
hooks:
- id: mypy
files: ^(src|tests)
Expand Down
4 changes: 2 additions & 2 deletions tests/test_bench.py
Original file line number Diff line number Diff line change
Expand Up @@ -1008,11 +1008,11 @@ def test_evaluate_qasm_file() -> None:
dump(qc, f)
path = Path(filename)
res = evaluation.evaluate_qasm_file(filename)
assert type(res) == evaluation.EvaluationResult
assert type(res) is evaluation.EvaluationResult
path.unlink()

res = evaluation.evaluate_qasm_file("invalid_path.qasm")
assert type(res) == evaluation.EvaluationResult
assert type(res) is evaluation.EvaluationResult
assert res.num_qubits == -1
assert res.depth == -1
assert res.num_gates == -1
Expand Down

0 comments on commit fd8e9f4

Please sign in to comment.