@@ -27,17 +27,21 @@ def parse(self, content: dict[str, dict], custom_config_path: Union[str, None] =
2727 dependencies_section = self ._parse_dependencies_section (content [self ._DEPENDENCIES ])
2828 template_section = self ._parse_template_section (content [self ._TEMPLATE ])
2929 git_section = self ._parse_git_section (content [self ._GIT ])
30- return ConfigurationSchema (
31- general = general_section ,
32- dependencies = dependencies_section ,
33- template = template_section ,
34- git = git_section ,
35- ) if not custom_config_path else ConfigurationSchema .from_file (
36- config_file_path = custom_config_path ,
37- general = general_section ,
38- dependencies = dependencies_section ,
39- template = template_section ,
40- git = git_section ,
30+ return (
31+ ConfigurationSchema (
32+ general = general_section ,
33+ dependencies = dependencies_section ,
34+ template = template_section ,
35+ git = git_section ,
36+ )
37+ if not custom_config_path
38+ else ConfigurationSchema .from_file (
39+ config_file_path = custom_config_path ,
40+ general = general_section ,
41+ dependencies = dependencies_section ,
42+ template = template_section ,
43+ git = git_section ,
44+ )
4145 )
4246
4347 def _parse_general_section (self , fields : dict [str , str ]) -> GeneralConfiguration :
0 commit comments