diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a690d6653..a0a0bdeab 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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"] @@ -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) diff --git a/tests/test_bench.py b/tests/test_bench.py index 92373f112..a54c480c1 100644 --- a/tests/test_bench.py +++ b/tests/test_bench.py @@ -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