diff --git a/userCode/lib/containers.py b/userCode/lib/containers.py index 8d04c46a..3d014045 100644 --- a/userCode/lib/containers.py +++ b/userCode/lib/containers.py @@ -18,9 +18,9 @@ def __init__( self.name = "gleaner" self.source = source - assert Path("/tmp/geoconnex/").exists(), ( - "the /tmp/geoconnex directory does not exist. This must exist for us to share configs with the docker socket on the host" - ) + assert Path( + "/tmp/geoconnex/" + ).exists(), "the /tmp/geoconnex directory does not exist. This must exist for us to share configs with the docker socket on the host" def run(self, args: list[str]): run_scheduler_docker_image( diff --git a/userCode/lib/env.py b/userCode/lib/env.py index a5702d9d..cefd7e0e 100644 --- a/userCode/lib/env.py +++ b/userCode/lib/env.py @@ -104,9 +104,9 @@ def strict_env(key: str): DAGSTER_YAML_CONFIG: str = os.path.join(userCodeRoot, "dagster.yaml") -assert Path(DAGSTER_YAML_CONFIG).exists(), ( - f"the dagster.yaml file does not exist at {DAGSTER_YAML_CONFIG}" -) +assert Path( + DAGSTER_YAML_CONFIG +).exists(), f"the dagster.yaml file does not exist at {DAGSTER_YAML_CONFIG}" NABU_PROFILING = strict_env("NABU_PROFILING")