Skip to content

Commit f08c939

Browse files
committed
style: apply formatter and linter
1 parent 71655ea commit f08c939

File tree

1 file changed

+15
-11
lines changed

1 file changed

+15
-11
lines changed

instant_python/config/infra/parser/parser.py

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)