Skip to content

Commit c4f79c4

Browse files
committed
pip-audit fixes to unblock release
1 parent a042806 commit c4f79c4

4 files changed

Lines changed: 58 additions & 38 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/psf/black
3-
rev: 24.10.0
3+
rev: 26.3.1
44
hooks:
55
- id: black
66
args: ["--config=pyproject.toml"]

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ dev = [
9494
"pytest-timeout>=2.3.1",
9595
"httpx>=0.24.0",
9696
# Pin to match .pre-commit-config.yaml so `make format` and the black hook agree.
97-
"black==24.10.0",
97+
# 26.3.1+ required for CVE-2026-32274 (arbitrary cache path writes).
98+
"black==26.3.1",
9899
]
99100
docs = [
100101
"mkdocs",

tests/unit/test_okh_losh_converter.py

Lines changed: 6 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,10 @@ def test_minimal_fields_and_renames(tmp_path):
5454

5555

5656
def test_tsdc_and_standard_compliance_wrapped_as_lists(tmp_path):
57-
content = (
58-
MINIMAL
59-
+ """
57+
content = MINIMAL + """
6058
tsdc = "ASM"
6159
standard-compliance = "DIN EN 1335"
6260
"""
63-
)
6461
path = _write(tmp_path, content)
6562
manifest = OkhLoshConverter().okh_losh_to_okh(path)
6663

@@ -69,13 +66,10 @@ def test_tsdc_and_standard_compliance_wrapped_as_lists(tmp_path):
6966

7067

7168
def test_manufacturing_instructions_string_and_list_become_document_refs(tmp_path):
72-
content = (
73-
MINIMAL
74-
+ """
69+
content = MINIMAL + """
7570
manufacturing-instructions = "https://example.com/manual.pdf"
7671
user-manual = ["https://example.com/a.pdf", "https://example.com/b.pdf"]
7772
"""
78-
)
7973
path = _write(tmp_path, content)
8074
manifest = OkhLoshConverter().okh_losh_to_okh(path)
8175

@@ -89,14 +83,11 @@ def test_manufacturing_instructions_string_and_list_become_document_refs(tmp_pat
8983

9084

9185
def test_software_installation_guide_kebab_case_renamed(tmp_path):
92-
content = (
93-
MINIMAL
94-
+ """
86+
content = MINIMAL + """
9587
[[software]]
9688
release = "https://example.com/release/1.0"
9789
installation-guide = "https://example.com/install.md"
9890
"""
99-
)
10091
path = _write(tmp_path, content)
10192
manifest = OkhLoshConverter().okh_losh_to_okh(path)
10293

@@ -106,15 +97,12 @@ def test_software_installation_guide_kebab_case_renamed(tmp_path):
10697

10798

10899
def test_outer_dimensions_preserved_as_is(tmp_path):
109-
content = (
110-
MINIMAL
111-
+ """
100+
content = MINIMAL + """
112101
[outer-dimensions]
113102
width = 400
114103
depth = 350.8
115104
height = 150
116105
"""
117-
)
118106
path = _write(tmp_path, content)
119107
manifest = OkhLoshConverter().okh_losh_to_okh(path)
120108

@@ -126,9 +114,7 @@ def test_outer_dimensions_preserved_as_is(tmp_path):
126114

127115

128116
def test_image_array_picks_primary_and_preserves_full_list_in_metadata(tmp_path):
129-
content = (
130-
MINIMAL
131-
+ """
117+
content = MINIMAL + """
132118
[[image]]
133119
location = "imgs/logo.jpg"
134120
slots = ["logo"]
@@ -140,7 +126,6 @@ def test_image_array_picks_primary_and_preserves_full_list_in_metadata(tmp_path)
140126
[[image]]
141127
location = "imgs/other.jpg"
142128
"""
143-
)
144129
path = _write(tmp_path, content)
145130
manifest = OkhLoshConverter().okh_losh_to_okh(path)
146131

@@ -163,13 +148,10 @@ def test_image_as_bare_string_handled(tmp_path):
163148

164149

165150
def test_mass_and_release_go_to_metadata(tmp_path):
166-
content = (
167-
MINIMAL
168-
+ """
151+
content = MINIMAL + """
169152
mass = 50330.0
170153
release = "https://example.com/releases/1.0.0"
171154
"""
172-
)
173155
path = _write(tmp_path, content)
174156
manifest = OkhLoshConverter().okh_losh_to_okh(path)
175157

uv.lock

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

0 commit comments

Comments
 (0)