Skip to content

Commit 533538e

Browse files
⬆️🪝 Update patch versions (#592)
This PR contains the following updates: | Package | Type | Update | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---|---|---| | [adhtruong/mirrors-typos](https://redirect.github.com/adhtruong/mirrors-typos) | repository | patch | `v1.43.3` → `v1.43.4` | ![age](https://developer.mend.io/api/mc/badges/age/github-tags/adhtruong%2fmirrors-typos/v1.43.4?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/github-tags/adhtruong%2fmirrors-typos/v1.43.3/v1.43.4?slim=true) | | [astral-sh/ruff-pre-commit](https://redirect.github.com/astral-sh/ruff-pre-commit) | repository | patch | `v0.15.0` → `v0.15.1` | ![age](https://developer.mend.io/api/mc/badges/age/github-tags/astral-sh%2fruff-pre-commit/v0.15.1?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/github-tags/astral-sh%2fruff-pre-commit/v0.15.0/v0.15.1?slim=true) | | [astral-sh/uv-pre-commit](https://redirect.github.com/astral-sh/uv-pre-commit) | repository | patch | `0.10.0` → `0.10.3` | ![age](https://developer.mend.io/api/mc/badges/age/github-tags/astral-sh%2fuv-pre-commit/0.10.3?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/github-tags/astral-sh%2fuv-pre-commit/0.10.0/0.10.3?slim=true) | | [python-jsonschema/check-jsonschema](https://redirect.github.com/python-jsonschema/check-jsonschema) | repository | patch | `0.36.1` → `0.36.2` | ![age](https://developer.mend.io/api/mc/badges/age/github-tags/python-jsonschema%2fcheck-jsonschema/0.36.2?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/github-tags/python-jsonschema%2fcheck-jsonschema/0.36.1/0.36.2?slim=true) | | [ty](https://redirect.github.com/astral-sh/ty) ([changelog](https://redirect.github.com/astral-sh/ty/blob/main/CHANGELOG.md)) | dependency-groups | patch | `==0.0.15` → `==0.0.17` | ![age](https://developer.mend.io/api/mc/badges/age/pypi/ty/0.0.17?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/ty/0.0.15/0.0.17?slim=true) | 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>adhtruong/mirrors-typos (adhtruong/mirrors-typos)</summary> ### [`v1.43.4`](https://redirect.github.com/adhtruong/mirrors-typos/compare/v1.43.3...v1.43.4) [Compare Source](https://redirect.github.com/adhtruong/mirrors-typos/compare/v1.43.3...v1.43.4) </details> <details> <summary>astral-sh/ruff-pre-commit (astral-sh/ruff-pre-commit)</summary> ### [`v0.15.1`](https://redirect.github.com/astral-sh/ruff-pre-commit/releases/tag/v0.15.1) [Compare Source](https://redirect.github.com/astral-sh/ruff-pre-commit/compare/v0.15.0...v0.15.1) See: <https://github.com/astral-sh/ruff/releases/tag/0.15.1> </details> <details> <summary>astral-sh/uv-pre-commit (astral-sh/uv-pre-commit)</summary> ### [`v0.10.3`](https://redirect.github.com/astral-sh/uv-pre-commit/releases/tag/0.10.3) [Compare Source](https://redirect.github.com/astral-sh/uv-pre-commit/compare/0.10.2...0.10.3) See: <https://github.com/astral-sh/uv/releases/tag/0.10.3> ### [`v0.10.2`](https://redirect.github.com/astral-sh/uv-pre-commit/releases/tag/0.10.2) [Compare Source](https://redirect.github.com/astral-sh/uv-pre-commit/compare/0.10.1...0.10.2) See: <https://github.com/astral-sh/uv/releases/tag/0.10.2> ### [`v0.10.1`](https://redirect.github.com/astral-sh/uv-pre-commit/releases/tag/0.10.1) [Compare Source](https://redirect.github.com/astral-sh/uv-pre-commit/compare/0.10.0...0.10.1) See: <https://github.com/astral-sh/uv/releases/tag/0.10.1> </details> <details> <summary>python-jsonschema/check-jsonschema (python-jsonschema/check-jsonschema)</summary> ### [`v0.36.2`](https://redirect.github.com/python-jsonschema/check-jsonschema/blob/HEAD/CHANGELOG.rst#0362) [Compare Source](https://redirect.github.com/python-jsonschema/check-jsonschema/compare/0.36.1...0.36.2) - Update vendored schemas: circle-ci, gitlab-ci, mergify, renovate, snapcraft, woodpecker-ci (2026-02-15) </details> <details> <summary>astral-sh/ty (ty)</summary> ### [`v0.0.17`](https://redirect.github.com/astral-sh/ty/blob/HEAD/CHANGELOG.md#0017) [Compare Source](https://redirect.github.com/astral-sh/ty/compare/0.0.16...0.0.17) Released on 2026-02-13. ##### Bug fixes - Avoid `Literal` promotion for constrained `TypeVar`s with `Literal` bounds ([#&#8203;23209](https://redirect.github.com/astral-sh/ruff/pull/23209)) - Fix false positives in `TypeVar` shadowing checks ([#&#8203;23222](https://redirect.github.com/astral-sh/ruff/pull/23222)) ##### Core type checking - Support generic protocols ([#&#8203;21902](https://redirect.github.com/astral-sh/ruff/pull/21902)) - Perform control-flow analysis in loops ([#&#8203;22794](https://redirect.github.com/astral-sh/ruff/pull/22794)) - Support `typing.Self` in attribute annotations ([#&#8203;23108](https://redirect.github.com/astral-sh/ruff/pull/23108)) - Support type narrowing in situations with calls to `NoReturn` functions ([#&#8203;23109](https://redirect.github.com/astral-sh/ruff/pull/23109)) - Support type narrowing and reachability analysis based on `os.name` checks ([#&#8203;23230](https://redirect.github.com/astral-sh/ruff/pull/23230)) - Detect overrides of `Final` class variables in subclasses ([#&#8203;23180](https://redirect.github.com/astral-sh/ruff/pull/23180)) - Fix bound method access on `None` ([#&#8203;23246](https://redirect.github.com/astral-sh/ruff/pull/23246)) - Fix method calls on subclasses of `Any` ([#&#8203;23248](https://redirect.github.com/astral-sh/ruff/pull/23248)) - Disallow type variables within PEP-695 type variable bounds and constraints ([#&#8203;22982](https://redirect.github.com/astral-sh/ruff/pull/22982)) - Emit error for attribute access on union where some elements lack the attribute ([#&#8203;23042](https://redirect.github.com/astral-sh/ruff/pull/23042)) - Emit error for invalid typevar defaults ([#&#8203;23194](https://redirect.github.com/astral-sh/ruff/pull/23194)) - Improve display of `ParamSpec`s in some situations ([#&#8203;23211](https://redirect.github.com/astral-sh/ruff/pull/23211)) ##### LSP server - Add hover and go-to-declaration support for subscript literals ([#&#8203;22837](https://redirect.github.com/astral-sh/ruff/pull/22837)) - Assign lower completion ranking to deprecated names in auto import ([#&#8203;23188](https://redirect.github.com/astral-sh/ruff/pull/23188)) - Improve spans of references to submodules imported in an `__init__.py` ([#&#8203;21795](https://redirect.github.com/astral-sh/ruff/pull/21795)) - Include conditional symbols (like `datetime.UTC`) in auto-import in more cases ([#&#8203;23249](https://redirect.github.com/astral-sh/ruff/pull/23249)) - Support auto-import for symbols in inlay hints ([#&#8203;22111](https://redirect.github.com/astral-sh/ruff/pull/22111)) - Include overload declarations in find-references ([#&#8203;23215](https://redirect.github.com/astral-sh/ruff/pull/23215)) ##### Performance - Avoid `UnionBuilder` overhead when creating a new union from the filtered elements of an existing union ([#&#8203;22352](https://redirect.github.com/astral-sh/ruff/pull/22352)) ##### Other changes - Allow discovering dependencies in system Python environments ([#&#8203;22994](https://redirect.github.com/astral-sh/ruff/pull/22994)) - Apply workspace settings to virtual files ([#&#8203;23228](https://redirect.github.com/astral-sh/ruff/pull/23228)) - Add support for `--output-format=junit` ([#&#8203;22125](https://redirect.github.com/astral-sh/ruff/pull/22125)) - Use a smaller diagnostic range for `inconsistent-mro` diagnostics ([#&#8203;23213](https://redirect.github.com/astral-sh/ruff/pull/23213)) ##### Contributors - [@&#8203;carljm](https://redirect.github.com/carljm) - [@&#8203;BurntSushi](https://redirect.github.com/BurntSushi) - [@&#8203;charliermarsh](https://redirect.github.com/charliermarsh) - [@&#8203;Glyphack](https://redirect.github.com/Glyphack) - [@&#8203;cetanu](https://redirect.github.com/cetanu) - [@&#8203;AlexWaygood](https://redirect.github.com/AlexWaygood) - [@&#8203;joelostblom](https://redirect.github.com/joelostblom) - [@&#8203;Gankra](https://redirect.github.com/Gankra) - [@&#8203;mtshiba](https://redirect.github.com/mtshiba) - [@&#8203;MatthewMckee4](https://redirect.github.com/MatthewMckee4) - [@&#8203;Hugo-Polloli](https://redirect.github.com/Hugo-Polloli) - [@&#8203;sharkdp](https://redirect.github.com/sharkdp) - [@&#8203;alex](https://redirect.github.com/alex) - [@&#8203;dcreager](https://redirect.github.com/dcreager) - [@&#8203;oconnor663](https://redirect.github.com/oconnor663) ### [`v0.0.16`](https://redirect.github.com/astral-sh/ty/blob/HEAD/CHANGELOG.md#0016) [Compare Source](https://redirect.github.com/astral-sh/ty/compare/0.0.15...0.0.16) Released on 2026-02-10. ##### Bug fixes - Allow stringified argument in PEP-613 alias to `Optional` ([#&#8203;23200](https://redirect.github.com/astral-sh/ruff/pull/23200)) - Fix fuzzer panic on slice expression in unclosed comprehension ([#&#8203;23146](https://redirect.github.com/astral-sh/ruff/pull/23146)) - Fix combinatorial explosion due to fixed-length tuple expansion in overload matching ([#&#8203;23190](https://redirect.github.com/astral-sh/ruff/pull/23190)) - Respect `@no_type_check` when combined with other decorators ([#&#8203;23177](https://redirect.github.com/astral-sh/ruff/pull/23177)) - Fix diagnostic location for an incorrect sub-call to a specialized ParamSpec ([#&#8203;23036](https://redirect.github.com/astral-sh/ruff/pull/23036)) ##### LSP server - Assign lower completions ranking to deprecated functions and classes ([#&#8203;23089](https://redirect.github.com/astral-sh/ruff/pull/23089)) - Change goto-def for class constructors to always go to class definition ([#&#8203;23071](https://redirect.github.com/astral-sh/ruff/pull/23071)) - Ensure diagnostic mode is consistent across projects inside the LSP server ([#&#8203;23121](https://redirect.github.com/astral-sh/ruff/pull/23121)) - Don't include the class `Foo` in autocomplete suggestions when the user is typing out `Foo`'s bases ([#&#8203;23141](https://redirect.github.com/astral-sh/ruff/pull/23141)) - Fix parameter references across files via keyword args ([#&#8203;23012](https://redirect.github.com/astral-sh/ruff/pull/23012)) - Fix wrong inlay hints for overloaded function arguments ([#&#8203;23179](https://redirect.github.com/astral-sh/ruff/pull/23179)) - Support diagnostics in newly created files inside neovim ([#&#8203;23095](https://redirect.github.com/astral-sh/ruff/pull/23095)) - Exclude already-included classes when providing completion suggestions for class bases ([#&#8203;23085](https://redirect.github.com/astral-sh/ruff/pull/23085)) ##### CLI - Add support for `TY_OUTPUT_FORMAT` environment variable ([#&#8203;23123](https://redirect.github.com/astral-sh/ruff/pull/23123)) - Fall back to `python3` found in `$PATH` if no environment is found ([#&#8203;22843](https://redirect.github.com/astral-sh/ruff/pull/22843)) ##### Type checking - Add `inconsistent-mro` autofix to move `Generic[]` to the end of the bases list ([#&#8203;22998](https://redirect.github.com/astral-sh/ruff/pull/22998)) - Add precise return-type inference for `struct.unpack` ([#&#8203;22562](https://redirect.github.com/astral-sh/ruff/pull/22562), [#&#8203;23130](https://redirect.github.com/astral-sh/ruff/pull/23130)) - Disallow TypeVars within ClassVars ([#&#8203;23184](https://redirect.github.com/astral-sh/ruff/pull/23184)) - Emit diagnostic on unbound call to abstract `@classmethod` or `@staticmethod` ([#&#8203;23182](https://redirect.github.com/astral-sh/ruff/pull/23182)) - Fix false-positive diagnostics when providing the `total=` keyword to `TypedDict` classes that had PEP-695 type parameters ([#&#8203;23114](https://redirect.github.com/astral-sh/ruff/pull/23114)) - Narrow both left- and right-hand operands where possible ([#&#8203;23084](https://redirect.github.com/astral-sh/ruff/pull/23084)) - Narrow chained operators ([#&#8203;23093](https://redirect.github.com/astral-sh/ruff/pull/23093)) - Narrow equality subscripts on either operand ([#&#8203;23104](https://redirect.github.com/astral-sh/ruff/pull/23104)) - Recognize `__dataclass_transform__` to support SQLModel ([#&#8203;23070](https://redirect.github.com/astral-sh/ruff/pull/23070)) - Relax the attribute narrowing condition to support deeper-nested attribute type narrowing ([#&#8203;22440](https://redirect.github.com/astral-sh/ruff/pull/22440)) - Support constrained TypeVar compatibility across function boundaries ([#&#8203;23103](https://redirect.github.com/astral-sh/ruff/pull/23103)) - Support comparison methods (`__gt__`, etc.) where a parameter is annotated with a `Literal` type ([#&#8203;23100](https://redirect.github.com/astral-sh/ruff/pull/23100)) - Support partially specialized type context ([#&#8203;22748](https://redirect.github.com/astral-sh/ruff/pull/22748)) - Use type context when inferring constructor argument types ([#&#8203;23139](https://redirect.github.com/astral-sh/ruff/pull/23139)) - Validate `TypedDict` constructor calls for generic aliases and `type[...]` targets ([#&#8203;23113](https://redirect.github.com/astral-sh/ruff/pull/23113)) ##### Performance - Conservative narrowing places optimization ([#&#8203;22734](https://redirect.github.com/astral-sh/ruff/pull/22734)) ##### Contributors - [@&#8203;rbange](https://redirect.github.com/rbange) - [@&#8203;rayzeller](https://redirect.github.com/rayzeller) - [@&#8203;charliermarsh](https://redirect.github.com/charliermarsh) - [@&#8203;11happy](https://redirect.github.com/11happy) - [@&#8203;figsoda](https://redirect.github.com/figsoda) - [@&#8203;mtshiba](https://redirect.github.com/mtshiba) - [@&#8203;ibraheemdev](https://redirect.github.com/ibraheemdev) - [@&#8203;ngnpope](https://redirect.github.com/ngnpope) - [@&#8203;sakgoyal](https://redirect.github.com/sakgoyal) - [@&#8203;oconnor663](https://redirect.github.com/oconnor663) - [@&#8203;ericmarkmartin](https://redirect.github.com/ericmarkmartin) - [@&#8203;Hugo-Polloli](https://redirect.github.com/Hugo-Polloli) - [@&#8203;Glyphack](https://redirect.github.com/Glyphack) - [@&#8203;sharkdp](https://redirect.github.com/sharkdp) - [@&#8203;carljm](https://redirect.github.com/carljm) - [@&#8203;BurntSushi](https://redirect.github.com/BurntSushi) </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. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://redirect.github.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- 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/munich-quantum-toolkit/predictor). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My44LjUiLCJ1cGRhdGVkSW5WZXIiOiI0My4xNS4zIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiLCJwcmUtY29tbWl0IiwicHl0aG9uIl19--> --------- 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: Daniel Haag <121057143+denialhaag@users.noreply.github.com>
1 parent 2928b80 commit 533538e

File tree

5 files changed

+30
-29
lines changed

5 files changed

+30
-29
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ repos:
3737

3838
## Check JSON schemata
3939
- repo: https://github.com/python-jsonschema/check-jsonschema
40-
rev: 0.36.1
40+
rev: 0.36.2
4141
hooks:
4242
- id: check-github-workflows
4343
priority: 0
@@ -56,7 +56,7 @@ repos:
5656

5757
## Check for spelling
5858
- repo: https://github.com/adhtruong/mirrors-typos
59-
rev: v1.43.3
59+
rev: v1.43.4
6060
hooks:
6161
- id: typos
6262
priority: 0
@@ -78,7 +78,7 @@ repos:
7878

7979
## Ensure uv lock file is up-to-date
8080
- repo: https://github.com/astral-sh/uv-pre-commit
81-
rev: 0.10.0
81+
rev: 0.10.3
8282
hooks:
8383
- id: uv-lock
8484
priority: 0
@@ -114,7 +114,7 @@ repos:
114114

115115
## Python linting using ruff
116116
- repo: https://github.com/astral-sh/ruff-pre-commit
117-
rev: v0.15.0
117+
rev: v0.15.1
118118
hooks:
119119
- id: ruff-format
120120
priority: 1

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ docs = [
8686
dev = [
8787
{include-group = "test"},
8888
"nox>=2025.11.12",
89-
"ty==0.0.15",
89+
"ty==0.0.17",
9090
]
9191

9292
[project.urls]

src/mqt/predictor/ml/predictor.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
from __future__ import annotations
1212

1313
import logging
14+
import math
1415
import zipfile
1516
from importlib import resources
1617
from pathlib import Path
@@ -344,7 +345,7 @@ def _generate_training_sample(
344345

345346
num_not_empty_entries = 0
346347
for dev in self.devices:
347-
if scores[dev.description] != -1.0:
348+
if not math.isclose(scores[dev.description], -1.0):
348349
num_not_empty_entries += 1
349350

350351
if num_not_empty_entries == 0:

src/mqt/predictor/rl/helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def get_state_sample(max_qubits: int, path_training_circuits: Path, rng: Generat
6262
found_suitable_qc = True
6363

6464
try:
65-
qc = QuantumCircuit.from_qasm_file(file_list[random_index])
65+
qc = QuantumCircuit.from_qasm_file(file_list[random_index]) # ty: ignore[invalid-argument-type]
6666
except Exception:
6767
raise RuntimeError("Could not read QuantumCircuit from: " + str(file_list[random_index])) from None
6868

uv.lock

Lines changed: 22 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)