From acec63fed58611168912d0c69cf44bd68c9fe71e Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 22 Jul 2024 17:38:25 +0000 Subject: [PATCH 1/2] =?UTF-8?q?=E2=AC=86=EF=B8=8F=F0=9F=AA=9D=20update=20p?= =?UTF-8?q?re-commit=20hooks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.5.1 → v0.5.4](https://github.com/astral-sh/ruff-pre-commit/compare/v0.5.1...v0.5.4) - [github.com/pre-commit/mirrors-mypy: v1.10.1 → v1.11.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.10.1...v1.11.0) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) From 0930c5808fbf19b00000283a1fc08033eb9c7f2e Mon Sep 17 00:00:00 2001 From: Nils Quetschlich Date: Mon, 22 Jul 2024 11:04:03 -0700 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A9=B9=20fix=20linter=20warning?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/test_bench.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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