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

Add required file sources (closes #110) #115

Merged
merged 2 commits into from
Aug 28, 2024

Conversation

thorio
Copy link
Contributor

@thorio thorio commented Jul 23, 2024

See #110.

@thorio thorio force-pushed the feature/required-files branch 2 times, most recently from 728f06c to 7780c6c Compare July 23, 2024 07:15
thorio and others added 2 commits August 28, 2024 13:34
Setting `.required(true)` on a `Data` provider with a file path source
will make the provider fail when the file does not exist. This contrasts
with the default behaviour of `.required(false)` which treats missing
files as empty dictionaries.

Resolves SergioBenitez#110.
This commit extends the previous commit by also making source file
searching dynamically configurable as opposed to forcing the choice when
the data source is created. The `file_exact()` constructor is deprecated
in favor of `file().search(false)`.
@SergioBenitez SergioBenitez merged commit 3f9f333 into SergioBenitez:master Aug 28, 2024
8 checks passed
@thorio thorio deleted the feature/required-files branch August 31, 2024 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants