Skip to content

Commit 4b418fe

Browse files
⬆️🩹 Update patch updates (#769)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent 452296d commit 4b418fe

51 files changed

Lines changed: 168 additions & 168 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/templating.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
with:
2222
client-id: ${{ secrets.APP_ID }}
2323
private-key: ${{ secrets.APP_PRIVATE_KEY }}
24-
- uses: munich-quantum-toolkit/templates@73ca06a4fa58d37cf4520de21228f0008a0b6d90 # v1.4.0
24+
- uses: munich-quantum-toolkit/templates@02460c7352d8d8a13414c9c082f062b33c3c5ecb # v1.4.1
2525
with:
2626
token: ${{ steps.create-token.outputs.token }}
2727
name: QECC

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,14 @@ repos:
4545

4646
## Check pyproject.toml file
4747
- repo: https://github.com/henryiii/validate-pyproject-schema-store
48-
rev: 2026.07.08
48+
rev: 2026.07.17
4949
hooks:
5050
- id: validate-pyproject
5151
priority: 0
5252

5353
## Ensure uv.lock is up to date
5454
- repo: https://github.com/astral-sh/uv-pre-commit
55-
rev: 0.11.28
55+
rev: 0.11.29
5656
hooks:
5757
- id: uv-lock
5858
priority: 0
@@ -110,7 +110,7 @@ repos:
110110

111111
## Format Markdown files with rumdl
112112
- repo: https://github.com/rvben/rumdl-pre-commit
113-
rev: v0.2.31
113+
rev: v0.2.35
114114
hooks:
115115
- id: rumdl
116116
args: [--fix]
@@ -120,7 +120,7 @@ repos:
120120

121121
## Format and lint Python files with ruff
122122
- repo: https://github.com/astral-sh/ruff-pre-commit
123-
rev: v0.15.21
123+
rev: v0.15.22
124124
hooks:
125125
- id: ruff-check
126126
require_serial: true
@@ -143,7 +143,7 @@ repos:
143143

144144
## Check Python types with ty
145145
- repo: https://github.com/astral-sh/ty-pre-commit
146-
rev: v0.0.59
146+
rev: v0.0.60
147147
hooks:
148148
- id: ty
149149
args: [--isolated]

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
class CDAStyle(UnsrtStyle):
134134
"""Custom style for including PDF links."""
135135

136-
def format_url(self, _e: Entry) -> HRef: # noqa: PLR6301
136+
def format_url(self, _e: Entry) -> HRef: # ruff:ignore[no-self-use]
137137
"""Format URL field as a link to the PDF."""
138138
url = field("url", raw=True)
139139
return href()[url, "[PDF]"]

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ extend-select = [
208208
ignore = [
209209
"ISC001", # Conflicts with formatter
210210
"PLR09", # Too many <...>
211+
"PLR1702", # Too many nested blocks
211212
"PLR2004", # Magic value used in comparison
212213
"S101", # Use of assert detected
213214
]

scripts/cc_decoder/plotting/plots.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ def generate_plots_tn(results_dir: Path, results_file: Path) -> None:
241241
for code, xys in sorted(code_to_xys.items()):
242242
ax[1][0].plot(*zip(*xys, strict=False), "x-", label=f"d={code}")
243243
ax[1][0].set_xlabel("Physical error rate")
244-
ax[1][0].set_ylabel("Average time per run (µs)") # noqa: RUF001
244+
ax[1][0].set_ylabel("Average time per run (µs)") # ruff:ignore[ambiguous-unicode-character-string]
245245
ax[1][0].legend()
246246
ax[1][0].set_ylim(0, 300000)
247247

@@ -261,7 +261,7 @@ def generate_plots_tn(results_dir: Path, results_file: Path) -> None:
261261
ax[1][1].plot(ds, data["t"], label="p=" + str(p)) # type: ignore[call-overload]
262262

263263
ax[1][1].set_xlabel("Distance")
264-
ax[1][1].set_ylabel("Average time per run (µs)") # noqa: RUF001
264+
ax[1][1].set_ylabel("Average time per run (µs)") # ruff:ignore[ambiguous-unicode-character-string]
265265
ax[1][1].legend()
266266
ax[1][1].set_yscale("log")
267267
ax[1][1].set_xticks(ds)

scripts/cc_decoder/run_color_code_phenomenological_noise.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from mqt.qecc.cc_decoder.stim_interface.max_sat_sinter_decoder import sinter_decoders
2020

2121

22-
def generate_example_tasks() -> Any: # noqa: ANN401
22+
def generate_example_tasks() -> Any: # ruff:ignore[any-type]
2323
"""Generate example stim tasks."""
2424
for p in np.arange(0.001, 0.005, 0.002):
2525
for d in [3]:

scripts/cococo/evaluations_beyond_the_surface_code/evaluation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
import itertools
1313
import logging
1414
import math
15-
import pickle # noqa: S403
15+
import pickle # ruff:ignore[suspicious-pickle-import]
1616
from pathlib import Path
1717
from typing import TYPE_CHECKING, Any
1818

scripts/cococo/evaluations_beyond_the_surface_code/f_vs_t_q24_row_small.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
from __future__ import annotations
1111

12-
import pickle # noqa: S403
12+
import pickle # ruff:ignore[suspicious-pickle-import]
1313
from pathlib import Path
1414

1515
import evaluation as ev
@@ -108,12 +108,12 @@
108108
res_lst = ev.collect_data_space_time(instances, hc_params, reps, path, both_metric)
109109

110110
with Path(path).open("rb") as f:
111-
res_lst_2 = pickle.load(f) # noqa: S301
111+
res_lst_2 = pickle.load(f) # ruff:ignore[suspicious-pickle-usage]
112112

113113
path += "_metricrouting"
114114

115115
with Path(path).open("rb") as f:
116-
res_lst_routing = pickle.load(f) # noqa: S301
116+
res_lst_routing = pickle.load(f) # ruff:ignore[suspicious-pickle-usage]
117117

118118
for i, res in enumerate(res_lst_routing):
119119
layout_type = res["instances"][i]["layout_name"]

scripts/cococo/evaluations_beyond_the_surface_code/numerics_summarized.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"plt.rcParams[\"font.family\"] = \"Times New Roman\"\n",
1212
"plt.rcParams[\"mathtext.fontset\"] = \"stix\"\n",
1313
"\n",
14-
"import pickle # noqa: S403\n",
14+
"import pickle # ruff:ignore[suspicious-pickle-import]\n",
1515
"from pathlib import Path\n",
1616
"\n",
1717
"import evaluation as ev"
@@ -33,12 +33,12 @@
3333
"path = \"./f_vs_time_q24_ratio08_small_row_250718_2_8_f_t_temp\"\n",
3434
"\n",
3535
"with Path(path).open(\"rb\") as f:\n",
36-
" res_lst = pickle.load(f) # noqa: S301\n",
36+
" res_lst = pickle.load(f) # ruff:ignore[suspicious-pickle-usage]\n",
3737
"\n",
3838
"path = \"./f_vs_time_q24_ratio08_small_row_250718_2_8_f_t_temp_metricrouting\"\n",
3939
"\n",
4040
"with Path(path).open(\"rb\") as f:\n",
41-
" res_lst_routing = pickle.load(f) # noqa: S301"
41+
" res_lst_routing = pickle.load(f) # ruff:ignore[suspicious-pickle-usage]"
4242
]
4343
},
4444
{
@@ -76,7 +76,7 @@
7676
"source": [
7777
"path = \"./circuit_types_q24_250718_c\"\n",
7878
"with Path(path).open(\"rb\") as f:\n",
79-
" res_lst = pickle.load(f) # noqa: S301"
79+
" res_lst = pickle.load(f) # ruff:ignore[suspicious-pickle-usage]"
8080
]
8181
},
8282
{

scripts/cococo/evaluations_beyond_the_surface_code/test_evaluation.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
from __future__ import annotations
1111

12-
import pickle # noqa: S403
12+
import pickle # ruff:ignore[suspicious-pickle-import]
1313
from pathlib import Path
1414

1515
import evaluation as ev
@@ -104,12 +104,12 @@
104104
res_lst = ev.collect_data_space_time(instances, hc_params, reps, path, both_metric)
105105

106106
with Path(path).open("rb") as f:
107-
res_lst_2 = pickle.load(f) # noqa: S301
107+
res_lst_2 = pickle.load(f) # ruff:ignore[suspicious-pickle-usage]
108108

109109
path += "_metricrouting"
110110

111111
with Path(path).open("rb") as f:
112-
res_lst_routing = pickle.load(f) # noqa: S301
112+
res_lst_routing = pickle.load(f) # ruff:ignore[suspicious-pickle-usage]
113113

114114
for i, res in enumerate(res_lst_routing):
115115
layout_type = res["instances"][i]["layout_name"]

0 commit comments

Comments
 (0)