Skip to content

Commit

Permalink
added __all__ attribute to init
Browse files Browse the repository at this point in the history
  • Loading branch information
tclose committed Mar 3, 2024
1 parent 0796bb1 commit bf37bd2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nipype-auto-conv/generate
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ auto_dir = PKG_ROOT / "pydra" / "tasks" / PKG_NAME / "auto"
if auto_dir.exists():
shutil.rmtree(auto_dir)

all_interfaces = []
for fspath in sorted(SPECS_DIR.glob("**/*.yaml")):
with open(fspath) as f:
spec = yaml.load(f, Loader=yaml.SafeLoader)
Expand All @@ -56,6 +57,7 @@ for fspath in sorted(SPECS_DIR.glob("**/*.yaml")):
)
converter.generate(PKG_ROOT)
auto_init += f"from .{module_name} import {converter.task_name}\n"
all_interfaces.append(converter.task_name)


with open(PKG_ROOT / "pydra" / "tasks" / PKG_NAME / "auto" / "_version.py", "w") as f:
Expand Down

0 comments on commit bf37bd2

Please sign in to comment.