-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
Relax metadata check #135
Relax metadata check #135
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #135 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 32 32
Lines 1370 1373 +3
Branches 237 239 +2
=========================================
+ Hits 1370 1373 +3 ☔ View full report in Codecov by Sentry. |
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.
Would make more sense to disable_metadata_checks
IMO.
More clear (it's important but can be disabled) and more in line with recommendations.
WDYT?
I hate naming things, and here I have no PoV, so I love your opinion 😉 |
@@ -106,6 +111,7 @@ def __init__( | |||
compression: Optional[str] = None, | |||
workaround_nocancel: Optional[bool] = True, # noqa: FBT002 | |||
ignore_duplicates: Optional[bool] = False, # noqa: FBT002 | |||
disable_metadata_checks: bool = True, # noqa: FBT001, FBT002 |
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.
Should be False by default ; that's the point 😅
@@ -507,6 +507,12 @@ def test_check_metadata(tmp_path): | |||
Creator(tmp_path, "").config_dev_metadata(LongDescription="T" * 5000).start() | |||
|
|||
|
|||
def test_relax_metadata(tmp_path): | |||
Creator(tmp_path, "", disable_metadata_checks=False).config_dev_metadata( |
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.
Drop that 🍷 😉
Well, you're up for a post-PR fix 🤓 |
Fix #119
Changes
auto_metadata_check
parameter, which default toTrue
but can be disabledOne question: I had to disable validation at two places, is it intentional?