Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase validate paths usage #796

Merged
merged 7 commits into from
Oct 31, 2022
Merged

Increase validate paths usage #796

merged 7 commits into from
Oct 31, 2022

Conversation

camisowers
Copy link
Contributor

If you haven't already, please read through our contributing guidelines before opening your PR

What is the purpose of this PR?

Closes #777.
Change validate_paths to raise a FileNotFoundError instead of a ValueError, and use the function when appropriate throughout the repo.

Remaining issues

When we bump ark to toffy eventually, a lot of the tests will need to be changed to catch the new error type.

@camisowers camisowers added the enhancement New feature or request label Oct 27, 2022
@camisowers camisowers self-assigned this Oct 27, 2022
Copy link
Contributor

@alex-l-kong alex-l-kong left a comment

Choose a reason for hiding this comment

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

Looks a whole lot cleaner! Just one minor docstring fix.

ark/utils/data_utils.py Outdated Show resolved Hide resolved
Co-authored-by: alex-l-kong <31424707+alex-l-kong@users.noreply.github.com>
Copy link
Member

@ngreenwald ngreenwald left a comment

Choose a reason for hiding this comment

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

Looks good!

@ngreenwald ngreenwald merged commit dcc6338 into main Oct 31, 2022
@ngreenwald ngreenwald deleted the validate_paths_usage branch October 31, 2022 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make better use of validate_paths
3 participants