Skip to content

Commit fd11997

Browse files
committed
Update __init__.py
1 parent 2c6d646 commit fd11997

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

pkg/src/controlman/data_gen/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def validate_file_or_dep(key: str, dynamic_file):
7979
validate_data(f"{key}.data", dynamic_file["data"])
8080
return
8181

82-
def validate_files_or_deps(key: str, dynamic_files):
82+
def validate_files_or_deps(key: str, dynamic_files: str | dict):
8383
if isinstance(dynamic_files, str):
8484
dynamic_files = data.fill(key)
8585
for file_key, file in dynamic_files.items():
@@ -98,14 +98,16 @@ def validate_files_or_deps(key: str, dynamic_files):
9898
validate_files_or_deps(f"{k}.file", v["file"])
9999
if "apt" in v:
100100
validate_files_or_deps(f"{k}.apt", v["apt"])
101+
if "task" in v:
102+
validate_files_or_deps(f"{k}.task", v["task"])
101103
if "environment" in v:
102104
envs = v["environment"]
103105
if isinstance(envs, str):
104106
envs = data.fill(f"{k}.environment")
105107
for env_key, env in envs.items():
106108
if isinstance(env, str):
107109
env = data.fill(f"{k}.environment.{env_key}")
108-
for key in ("conda", "pip", "file"):
110+
for key in ("conda", "pip", "file", "task"):
109111
if key in env:
110112
validate_files_or_deps(f"{k}.environment.{env_key}.{key}", env[key])
111113
elif k.startswith("pypkg_"):

0 commit comments

Comments
 (0)