Skip to content

Commit

Permalink
⬆️🪝 Update pre-commit hook astral-sh/ruff-pre-commit to v0.9.3 (#540)
Browse files Browse the repository at this point in the history
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[astral-sh/ruff-pre-commit](https://github.com/astral-sh/ruff-pre-commit)
| repository | patch | `v0.9.2` -> `v0.9.3` |

Note: The `pre-commit` manager in Renovate is not supported by the
`pre-commit` maintainers or community. Please do not report any problems
there, instead [create a Discussion in the Renovate
repository](https://github.com/renovatebot/renovate/discussions/new)
if you have any questions.

---

### Release Notes

<details>
<summary>astral-sh/ruff-pre-commit (astral-sh/ruff-pre-commit)</summary>

###
[`v0.9.3`](https://github.com/astral-sh/ruff-pre-commit/releases/tag/v0.9.3)

[Compare
Source](https://github.com/astral-sh/ruff-pre-commit/compare/v0.9.2...v0.9.3)

See: https://github.com/astral-sh/ruff/releases/tag/0.9.3

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "every weekend" (UTC), Automerge - At
any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/cda-tum/mqt-qcec).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xMjUuMSIsInVwZGF0ZWRJblZlciI6IjM5LjEyNS4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiLCJwcmUtY29tbWl0Il19-->

---------

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
renovate[bot] and pre-commit-ci[bot] authored Jan 25, 2025
1 parent fe748f4 commit 8933f12
Show file tree
Hide file tree
Showing 2 changed files with 2 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 @@ -57,7 +57,7 @@ repos:

# Python linting and formatting using ruff
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.2
rev: v0.9.3
hooks:
- id: ruff
args: ["--fix", "--show-fixes"]
Expand Down
3 changes: 1 addition & 2 deletions src/mqt/qcec/compilation_flow_profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,7 @@ def write_profile_data_to_file(profile_data: dict[tuple[str, int], int], filenam
"""Write the profile data to a file."""
with Path(filename).open("w+", encoding="utf-8") as f:
f.write(f"# {filename}, Qiskit version: {qiskit_version}\n")
for (gate, controls), cost in profile_data.items():
f.write(f"{gate} {controls} {cost}\n")
f.writelines(f"{gate} {controls} {cost}\n" for (gate, controls), cost in profile_data.items())


def check_recurrence(seq: list[int], order: int = 2) -> list[int] | None:
Expand Down

0 comments on commit 8933f12

Please sign in to comment.