Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/github_actions/pypa/cibuildwheel-…
Browse files Browse the repository at this point in the history
…2.15
  • Loading branch information
burgholzer authored Aug 11, 2023
2 parents aecdbcf + c854116 commit 744f8a6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ repos:

# Run ruff (subsumes pyupgrade, isort, flake8+plugins, and more)
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.280
rev: v0.0.282
hooks:
- id: ruff
args: ["--fix", "--show-fixes"]

# Run code formatting with Black
- repo: https://github.com/psf/black
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 23.7.0 # Keep in sync with blacken-docs
hooks:
- id: black-jupyter
Expand Down Expand Up @@ -88,7 +88,7 @@ repos:

# Format configuration files with prettier
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.0
rev: v3.0.1
hooks:
- id: prettier
types_or: [yaml, markdown, html, css, scss, javascript, json]
Expand Down
2 changes: 1 addition & 1 deletion mqt/qecc/ecc_qiskit_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def print_simulation_results(result: Result, n_shots: int, threshold_probability
result_counts = result.get_counts()
for result_id in result_counts:
sub_result = result_id.split(" ")[-1]
if sub_result not in summarized_counts.keys():
if sub_result not in summarized_counts:
summarized_counts[sub_result] = 0
summarized_counts[sub_result] += result_counts[result_id]

Expand Down
6 changes: 5 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,11 @@ testpaths = ["test/python"]
addopts = ["-ra", "--strict-markers", "--strict-config", "--showlocals"]
log_cli_level = "INFO"
xfail_strict = true
filterwarnings = ["error", "ignore:pkg_resources.*:DeprecationWarning:"]
filterwarnings = [
"error",
"ignore:pkg_resources.*:DeprecationWarning:",
'ignore:.*qiskit.__qiskit_version__.*:DeprecationWarning:qiskit:',
]

[tool.coverage.run]
source = ["mqt.qecc"]
Expand Down

0 comments on commit 744f8a6

Please sign in to comment.