-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: ✨ add simple helper functions #962
Merged
lwjohnst86
merged 33 commits into
main
from
feat/sprout-checks-2-simple-helper-functions
Jan 21, 2025
Merged
Changes from 4 commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
55c03c6
refactor: :recycle: use custom CheckError in checks
martonvago 958bb18
feat: :sparkles: improve CheckError
martonvago a619ded
test: :white_check_mark: add tests for helper functions
martonvago 3586c51
refactor: :recycle: return early from function
martonvago d3de146
docs: :memo: update test docstrings
martonvago 05e7d41
apply suggestions from code review
martonvago 52d3a24
chore(pre-commit): :pencil2: automatic fixes
pre-commit-ci[bot] 64d7a87
Merge branch 'main' into feat/check-error
martonvago 8196dc0
feat: :sparkles: put required fields into constants
martonvago 8c701d8
feat: :sparkles: add simple helper functions
martonvago a08ce8b
apply suggestions from code review
martonvago 1dd1e1e
refactor: :recycle: rename function to validation_errors_to_check_errors
martonvago c595aa9
refactor: :recycle: rename file to validation_errors_to_check_errors
martonvago cb49bd1
docs: :memo: add more detail to docstring
martonvago d603d82
refactor: :recycle: rename constant to PACKAGE_RECOMMENDED_FIELDS
martonvago abfc4c5
fix: :bug: include `data` in resource required fields
martonvago 6611019
refactor: :recycle: make structure of PACKAGE_SPROUT_REQUIRED_FIELDS …
martonvago fea4a5f
refactor: :recycle: drop fields using pop
martonvago 1cbec8a
apply suggestions from code review
martonvago c5b784f
refactor: :recycle: rename function to get_sprout_specific_resource_e…
martonvago c854a2d
refactor: :recycle: rename file to get_sprout_specific_resource_errors
martonvago ee5edf0
docs: :memo: update test names and docstrings
martonvago ee05805
Merge branch 'feat/check-error' into feat/sprout-checks-1-required-fi…
martonvago e43d13e
Merge branch 'feat/sprout-checks-1-required-fields' into feat/sprout-…
martonvago 569b947
refactor: :recycle: rename function to exclude_non_sprout_resource_er…
martonvago 87418fb
refactor: :recycle: rename file to exclude_non_sprout_resource_errors
martonvago 144b12f
apply suggestions from code review
martonvago b33c387
Merge branch 'main' into feat/sprout-checks-2-simple-helper-functions
lwjohnst86 f0510d8
Merge branch 'main' into feat/sprout-checks-2-simple-helper-functions
lwjohnst86 7c19388
refactor: :recycle: rename functions
martonvago abc47e9
refactor: :recycle: rename files
martonvago a0d4897
refactor: :recycle: update error message and assertions
martonvago fd6282c
refactor: :recycle: pull out type error message into constant
martonvago File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could arguably go into a separate file or even be exposed by the
checks
package. As #978 will rework this, I'll just leave it like this for now.