Skip to content

Commit

Permalink
⬆️🪝 update pre-commit hooks (#333)
Browse files Browse the repository at this point in the history
<!--pre-commit.ci start-->
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.4.3 →
v0.4.4](astral-sh/ruff-pre-commit@v0.4.3...v0.4.4)
<!--pre-commit.ci end-->

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored May 13, 2024
1 parent 8adbec6 commit f8e3159
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .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.4.3
rev: v0.4.4
hooks:
- id: ruff
args: ["--fix", "--show-fixes"]
Expand Down
2 changes: 1 addition & 1 deletion src/mqt/bench/benchmark_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def __init__(self, cfg_path: str | None = None, qasm_output_path: str | None = N
"""Initialize the BenchmarkGenerator."""
if cfg_path is None:
cfg_path = utils.get_default_config_path()
with Path(cfg_path).open() as jsonfile:
with Path(cfg_path).open(encoding="locale") as jsonfile:
self.cfg = json.load(jsonfile)
print("Read config successful")
self.timeout = self.cfg["timeout"]
Expand Down
2 changes: 1 addition & 1 deletion tests/test_bench.py
Original file line number Diff line number Diff line change
Expand Up @@ -1004,7 +1004,7 @@ def test_evaluate_qasm_file() -> None:
"""Test the evaluation of a qasm file."""
qc = get_benchmark("dj", 1, 5)
filename = "test_5.qasm"
with Path(filename).open("w") as f:
with Path(filename).open("w", encoding="locale") as f:
dump(qc, f)
path = Path(filename)
res = evaluation.evaluate_qasm_file(filename)
Expand Down

0 comments on commit f8e3159

Please sign in to comment.