Skip to content

Commit 4d64b8f

Browse files
committed
Format fixes (and Makefile target).
1 parent 0570ca6 commit 4d64b8f

File tree

3 files changed

+10
-11
lines changed

3 files changed

+10
-11
lines changed

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,5 +135,8 @@ release: release-local push-release ## package, review, and upload a release
135135
add-history: ## Reformat HISTORY.rst with data from Github's API
136136
$(IN_VENV) python $(BUILD_SCRIPTS_DIR)/bootstrap_history.py --acknowledgements
137137

138+
format:
139+
uv run --group lint black .
140+
138141
mypy:
139142
MYPYPATH=mypy-stubs mypy gxformat2

tests/test_pydantic_schema.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,7 @@ def test_tool_state_string(self):
143143

144144
def test_tool_state_dict(self):
145145
native = dict(MINIMAL_NATIVE)
146-
native["steps"] = {
147-
"0": dict(MINIMAL_NATIVE["steps"]["0"], tool_state={"optional": False})
148-
}
146+
native["steps"] = {"0": dict(MINIMAL_NATIVE["steps"]["0"], tool_state={"optional": False})}
149147
wf = NativeGalaxyWorkflow.model_validate(native)
150148
step = wf.steps["0"]
151149
assert isinstance(step.tool_state, dict)
@@ -196,9 +194,7 @@ def test_with_comments(self):
196194
assert len(wf.comments) == 2
197195

198196
def test_with_report(self):
199-
wf = NativeGalaxyWorkflow.model_validate(
200-
dict(MINIMAL_NATIVE, report={"markdown": "# Report\nContent."})
201-
)
197+
wf = NativeGalaxyWorkflow.model_validate(dict(MINIMAL_NATIVE, report={"markdown": "# Report\nContent."}))
202198
assert wf.report.markdown == "# Report\nContent."
203199

204200
def test_with_source_metadata(self):

uv.lock

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

0 commit comments

Comments
 (0)