Skip to content

Commit

Permalink
format: configuration.py
Browse files Browse the repository at this point in the history
  • Loading branch information
simojo committed Nov 11, 2023
1 parent a033dcb commit fb37120
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions chasten/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,9 @@ def validate_configuration_files(
# re-parse input config so it is of type Path
config_as_path = Path(config)
# get directory containing config file
chasten_user_config_dir_str = str(Path(*config_as_path.parts[: len(config_as_path.parts) - 1]))
chasten_user_config_dir_str = str(
Path(*config_as_path.parts[: len(config_as_path.parts) - 1])
)
# isolate config file
chasten_user_config_file_str = str(config_as_path.parts[-1])
else:
Expand Down Expand Up @@ -194,7 +196,9 @@ def validate_configuration_files(
# argument will be supplied as unpacked dict
chasten_user_config_file_str_argument = {}
if chasten_user_config_file_str != "":
chasten_user_config_file_str_argument["configuration_file"] = chasten_user_config_file_str
chasten_user_config_file_str_argument[
"configuration_file"
] = chasten_user_config_file_str
# extract the configuration details
(
configuration_valid,
Expand Down

0 comments on commit fb37120

Please sign in to comment.