@@ -56,15 +56,15 @@ def __init__(self, args):
5656 if args .mount :
5757 self .config ["store" ] = args .mount
5858
59- # # ensure that the requested mount point exists
60- # if not self.mount.is_dir():
61- # raise FileNotFoundError(f"the mount point '{self.mount}' must exist")
59+ # ensure that the requested mount point exists
60+ if not self .mount .is_dir ():
61+ raise FileNotFoundError (f"the mount point '{ self .mount } ' must exist" )
6262
6363 # required environments.yaml file
6464 environments_path = self .path / "environments.yaml"
6565 self ._logger .debug (f"opening { environments_path } " )
6666 if not environments_path .is_file ():
67- raise FileNotFoundError (f"The recipe path '{ environments_path } ' does " f" not contain environments.yaml" )
67+ raise FileNotFoundError (f"The recipe path '{ environments_path } ' does not contain environments.yaml" )
6868
6969 with environments_path .open () as fid :
7070 raw = yaml .load (fid , Loader = yaml .Loader )
@@ -111,7 +111,7 @@ def __init__(self, args):
111111 mirrors_path = self .path / "mirrors.yaml"
112112 if mirrors_path .is_file ():
113113 self ._logger .warning (
114- "mirrors.yaml have been removed from recipes," " use the --cache option on stack-config instead."
114+ "mirrors.yaml have been removed from recipes, use the --cache option on stack-config instead."
115115 )
116116 raise RuntimeError ("Unsupported mirrors.yaml file in recipe." )
117117
@@ -209,7 +209,7 @@ def config(self):
209209 def config (self , config_path ):
210210 self ._logger .debug (f"opening { config_path } " )
211211 if not config_path .is_file ():
212- raise FileNotFoundError (f"The recipe path '{ config_path } ' does not contain compilers .yaml" )
212+ raise FileNotFoundError (f"The recipe path '{ config_path } ' does not contain config .yaml" )
213213
214214 with config_path .open () as fid :
215215 raw = yaml .load (fid , Loader = yaml .Loader )
@@ -387,7 +387,7 @@ def generate_environment_specs(self, raw):
387387 environments [name ]["view" ] = None
388388 for i in range (numviews ):
389389 # pick a name for the environment
390- cname = name if i == 0 else name + f"-{ i + 1 } __"
390+ cname = name if i == 0 else name + f"-{ i + 1 } __"
391391 if i > 0 :
392392 environments [cname ] = copy .deepcopy (base )
393393
0 commit comments