55import fsspec
66import typer
77
8- from gaiaflow .constants import Service , DEFAULT_IMAGE_NAME
8+ from gaiaflow .constants import DEFAULT_IMAGE_NAME , Service
99
1010app = typer .Typer ()
1111fs = fsspec .filesystem ("file" )
1212
1313
1414def load_imports ():
1515 from gaiaflow .constants import BaseAction , ExtendedAction
16- from gaiaflow .managers .mlops_manager import MlopsManager
1716 from gaiaflow .managers .minikube_manager import MinikubeManager
18- from gaiaflow .managers .utils import (create_gaiaflow_context_path ,
19- gaiaflow_path_exists_in_state ,
20- save_project_state )
17+ from gaiaflow .managers .mlops_manager import MlopsManager
18+ from gaiaflow .managers .utils import (
19+ create_gaiaflow_context_path ,
20+ gaiaflow_path_exists_in_state ,
21+ save_project_state ,
22+ )
2123
2224 return SimpleNamespace (
2325 BaseAction = BaseAction ,
@@ -56,11 +58,17 @@ def start(
5658 False , "--docker-build" , "-b" , help = "Force Docker image build"
5759 ),
5860 user_env_name : str = typer .Option (
59- None , "--env" , "-e" , help = "Provide conda/mamba environment name for "
60- "Jupyter Lab to run. If not set, it will use the name from your environment.yml file."
61+ None ,
62+ "--env" ,
63+ "-e" ,
64+ help = "Provide conda/mamba environment name for "
65+ "Jupyter Lab to run. If not set, it will use the name from your environment.yml file." ,
6166 ),
6267 env_tool : "str" = typer .Option (
63- "mamba" , "--env-tool" , "-t" , help = "Which tool to use for running your Jupyter lab. Options: mamba, conda" ,
68+ "mamba" ,
69+ "--env-tool" ,
70+ "-t" ,
71+ help = "Which tool to use for running your Jupyter lab. Options: mamba, conda" ,
6472 ),
6573):
6674 imports = load_imports ()
@@ -242,12 +250,12 @@ def cleanup(
242250 )
243251
244252
245-
246253@app .command (help = "Containerize your package into a docker image locally." )
247254def dockerize (
248255 project_path : Path = typer .Option (..., "--path" , "-p" , help = "Path to your project" ),
249- image_name : str = typer .Option (DEFAULT_IMAGE_NAME , "--image-name" , "-i" ,
250- help = ("Name of your image." )),
256+ image_name : str = typer .Option (
257+ DEFAULT_IMAGE_NAME , "--image-name" , "-i" , help = ("Name of your image." )
258+ ),
251259):
252260 imports = load_imports ()
253261 gaiaflow_path , user_project_path = imports .create_gaiaflow_context_path (
@@ -268,15 +276,18 @@ def dockerize(
268276 user_project_path = user_project_path ,
269277 action = imports .ExtendedAction .DOCKERIZE ,
270278 local = True ,
271- image_name = image_name
279+ image_name = image_name ,
272280 )
273281
274- @app .command (help = "Update the dependencies for the Airflow tasks. This command "
275- "synchronizes the running container environments with the project's"
276- "`environment.yml`. Make sure you have updated "
277- "`environment.yml` before running"
278- "this, as the container environments are updated based on "
279- "its contents." )
282+
283+ @app .command (
284+ help = "Update the dependencies for the Airflow tasks. This command "
285+ "synchronizes the running container environments with the project's"
286+ "`environment.yml`. Make sure you have updated "
287+ "`environment.yml` before running"
288+ "this, as the container environments are updated based on "
289+ "its contents."
290+ )
280291def update_deps (
281292 project_path : Path = typer .Option (..., "--path" , "-p" , help = "Path to your project" ),
282293):
0 commit comments