Skip to content

include values that fail constraints in ValueError messages - #407

Merged
elfkuzco merged 1 commit into
mainfrom
metadata-length-violations
Nov 20, 2026
Merged

elfkuzco merged 1 commit into
mainfrom
metadata-length-violations

Conversation

@elfkuzco

Copy link
Copy Markdown
Contributor

Changes

  • include values that fail metadata length restrictions in ValueError messages
  • include custom metadata names that fail restrictions for custom metadata in ValueError messages

This fixes #405

@elfkuzco elfkuzco self-assigned this Nov 17, 2026
@elfkuzco
elfkuzco requested a review from benoit74 November 17, 2026 11:08
@codecov

codecov Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (4732fd5) to head (154b749).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #407   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           42        42           
  Lines         2989      2990    +1     
  Branches       457       457           
=========================================
+ Hits          2989      2990    +1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@benoit74 benoit74 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thank you

Comment thread src/zimscraperlib/zim/metadata.py Resolved
@elfkuzco
elfkuzco requested a review from benoit74 November 17, 2026 17:21
Comment thread src/zimscraperlib/zim/metadata.py Resolved

@benoit74 benoit74 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I let you fix the typo, squash, force push and merge at your convenience

@elfkuzco
elfkuzco force-pushed the metadata-length-violations branch from 344adb2 to 582f51d Compare November 20, 2026 13:02
@elfkuzco
elfkuzco force-pushed the metadata-length-violations branch from 582f51d to 154b749 Compare November 20, 2026 13:03
@elfkuzco
elfkuzco merged commit f309d2d into main Nov 20, 2026
8 checks passed
@elfkuzco
elfkuzco deleted the metadata-length-violations branch November 20, 2026 13:07
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.

Metadata length violations do not include bad value in exception

2 participants