package bounds+linting

This commit is contained in:
Sydney Runkle
2025-07-02 13:16:55 -04:00
parent 07bdf48404
commit e593cf25a5
18 changed files with 234 additions and 258 deletions
+2 -3
View File
@@ -602,8 +602,7 @@ def validate_config(config: Config) -> Config:
if not config["graphs"]:
raise click.UsageError(
"No graphs found in config. "
"Add at least one graph to 'graphs' dictionary."
"No graphs found in config. Add at least one graph to 'graphs' dictionary."
)
# Validate image_distro config
@@ -1181,7 +1180,7 @@ def python_config_to_docker(
)
for reqpath, destpath in local_deps.pip_reqs
)
pip_reqs_str += f'{os.linesep}RUN {pip_install} {" ".join("-r " + r for _,r in local_deps.pip_reqs)}'
pip_reqs_str += f"{os.linesep}RUN {pip_install} {' '.join('-r ' + r for _, r in local_deps.pip_reqs)}"
pip_reqs_str = f"""# -- Installing local requirements --
{pip_reqs_str}
# -- End of local requirements install --"""
+1 -1
View File
@@ -123,7 +123,7 @@ def _download_repo_with_requests(repo_url: str, path: str) -> None:
)
except error.HTTPError as e:
click.secho(
f"❌ Error: Failed to download repository.\n" f"Details: {e}\n",
f"❌ Error: Failed to download repository.\nDetails: {e}\n",
fg="red",
bold=True,
err=True,