Skip to content

Code quality: utils.make_sure_path_exists refactored and type annotated#1722

Merged
insspb merged 9 commits intomasterfrom
update_make_sure_path_exists_and_related_code
Jun 9, 2022
Merged

Code quality: utils.make_sure_path_exists refactored and type annotated#1722
insspb merged 9 commits intomasterfrom
update_make_sure_path_exists_and_related_code

Conversation

@insspb
Copy link
Copy Markdown
Member

@insspb insspb commented Jun 9, 2022

Related #1403

I checked usage of make_sure_path_exists function, as one of the function related to files modification. First thought was to remove it, as it is almost wrapper over basic functions. But I decided to leave it with correct exception text, but without return.

Type annotate for functions that use make_sure_path_exists for correct values passing.

@insspb insspb added the code style This issue/PR relates to the project code style modification label Jun 9, 2022
jensens
jensens previously approved these changes Jun 9, 2022
Copy link
Copy Markdown
Contributor

@jensens jensens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just a minor idea how to phrase the log better.

Co-authored-by: Jens W. Klein <jk@kleinundpartner.at>
@insspb insspb merged commit 449f877 into master Jun 9, 2022
@insspb insspb deleted the update_make_sure_path_exists_and_related_code branch June 9, 2022 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code style This issue/PR relates to the project code style modification

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants