Skip to content

Commit a14bce9

Browse files
committed
Change package name; minor fixes
1 parent 6736d2e commit a14bce9

5 files changed

Lines changed: 22 additions & 19 deletions

File tree

poetry.lock

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

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tool.poetry]
2-
name = "styx"
2+
name = "styxcompiler"
33
version = "0.1.0"
44
description = "Boutiques code generator"
55
authors = ["Florian Rupprecht <floruppr@gmail.com>"]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
"""Python wrapper backend."""
22

3-
from .core import to_python as to_python
43
from .core import styxdefs_compat as styxdefs_compat
4+
from .core import to_python as to_python

src/styx/backend/python/interface.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ def _compile_outputs_class(
297297
if isinstance(sub_struct, ir.IList):
298298
docs_append = "This is a list of outputs with the same length and order as the inputs."
299299

300-
input_types_human = ' or '.join([enquote(t, '`') for t in alt_input_types])
300+
input_types_human = " or ".join([enquote(t, "`") for t in alt_input_types])
301301
outputs_class.fields.append(
302302
PyArg(
303303
name=output_symbol,
@@ -401,7 +401,10 @@ def _py_get_val(
401401
# Need to check for attr because some alts might have outputs others not.
402402
# todo: think about alternative solutions
403403
func.body.extend(
404-
indent([f"{output_symbol}=" f"[i.outputs(execution) if hasattr(i, \"outputs\") else None for i in {output_symbol_resolved}]{opt},"])
404+
indent([
405+
f"{output_symbol}="
406+
f'[i.outputs(execution) if hasattr(i, "outputs") else None for i in {output_symbol_resolved}]{opt},'
407+
])
405408
)
406409
else:
407410
o = f"{output_symbol_resolved}.outputs(execution)"

src/styx/frontend/boutiques/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ def _arg_elem_from_bt_elem(
235235
param=dparam,
236236
list_=dlist,
237237
default_value_set_to_none=True,
238-
resolve_parent=d.get("resolve-parent")
238+
resolve_parent=d.get("resolve-parent"),
239239
)
240240

241241
case InputTypePrimitive.Flag:

0 commit comments

Comments
 (0)