@@ -219,9 +219,9 @@ def load_extra_config_paths(self, config_paths: List[str]) -> Tuple[List[str], L
219219 unique_locations = list (dict .fromkeys (str (p ) for p in searched_locations ))
220220 searched = "\n " .join (f" - { p } " for p in unique_locations )
221221 raise ConfigPathNotFoundError (
222- f"config_paths entry '{ original_entry } ' was not found. Looked in:\n { searched } \n "
223- f"Check the path is spelled correctly and is relative to your working directory "
224- f" or the Gym install root."
222+ f""" config_paths entry '{ original_entry } ' was not found. Looked in:
223+ { searched }
224+ Check the path is spelled correctly and is relative to your working directory or the Gym install root."" "
225225 ) from e
226226 for new_config_path in extra_config .get (CONFIG_PATHS_KEY_NAME ) or []:
227227 if new_config_path not in config_paths :
@@ -267,10 +267,8 @@ def raise_on_no_server_instances(self, global_config_dict: DictConfig) -> None:
267267 return
268268
269269 raise NoServerInstancesError (
270- "No server instances are configured, so there is nothing to run. Pass one or more "
271- "configs via config_paths, e.g.:\n "
272- ' ng_run "+config_paths=[resources_servers/<env>/configs/<env>.yaml,'
273- 'responses_api_models/<model>/configs/<model>.yaml]"'
270+ """No server instances are configured, so there is nothing to run. Pass one or more configs via config_paths, e.g.:
271+ ng_run "+config_paths=[resources_servers/<env>/configs/<env>.yaml,responses_api_models/<model>/configs/<model>.yaml]\" """
274272 )
275273
276274 def validate_and_populate_defaults (
@@ -458,9 +456,9 @@ def parse(self, parse_config: Optional[GlobalConfigDictParserConfig] = None) ->
458456 config_paths = ta .validate_python (config_paths )
459457 except ValidationError as e :
460458 raise MalformedConfigPathsError (
461- f"'{ CONFIG_PATHS_KEY_NAME } ' must be a list of paths. Got: { config_paths !r} .\n "
462- f" Pass it as a Hydra list, e.g.:\n "
463- f' ng_run "+{ CONFIG_PATHS_KEY_NAME } =[resources_servers/<env>/configs/<env>.yaml]"'
459+ f""" '{ CONFIG_PATHS_KEY_NAME } ' must be a list of paths. Got: { config_paths !r} .
460+ Pass it as a Hydra list, e.g.:
461+ ng_run "+{ CONFIG_PATHS_KEY_NAME } =[resources_servers/<env>/configs/<env>.yaml]\" """
464462 ) from e
465463
466464 config_paths , extra_configs = self .load_extra_config_paths (config_paths )
0 commit comments