Skip to content

Commit

Permalink
⬆️🪝 Update pre-commit hook astral-sh/ruff-pre-commit to v0.7.3 (#748)
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://redirect.github.com/astral-sh/ruff-pre-commit)
| repository | patch | `v0.7.2` -> `v0.7.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://redirect.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.7.3`](https://redirect.github.com/astral-sh/ruff-pre-commit/releases/tag/v0.7.3)

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

See: https://github.com/astral-sh/ruff/releases/tag/0.7.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-core).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS43LjEiLCJ1cGRhdGVkSW5WZXIiOiIzOS43LjEiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbImRlcGVuZGVuY2llcyIsInByZS1jb21taXQiXX0=-->

---------

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: burgholzer <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: burgholzer <[email protected]>
  • Loading branch information
renovate[bot] and burgholzer authored Nov 9, 2024
1 parent 0b46c6e commit 769bf4b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ repos:

# Python linting using ruff
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.2
rev: v0.7.3
hooks:
- id: ruff
args: ["--fix", "--show-fixes"]
Expand Down
19 changes: 9 additions & 10 deletions src/mqt/core/_compat/typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,17 @@
import sys
from typing import TYPE_CHECKING

if sys.version_info < (3, 11):
if TYPE_CHECKING:
from typing_extensions import Self, assert_never
else:
Self = object
if sys.version_info >= (3, 11):
from typing import Self, assert_never
elif TYPE_CHECKING:
from typing_extensions import Self, assert_never
else:
Self = object

def assert_never(_: object) -> None:
msg = "Expected code to be unreachable"
raise AssertionError(msg)
def assert_never(_: object) -> None:
msg = "Expected code to be unreachable"
raise AssertionError(msg)

else:
from typing import Self, assert_never

__all__ = ["Self", "assert_never"]

Expand Down

0 comments on commit 769bf4b

Please sign in to comment.