-
Notifications
You must be signed in to change notification settings - Fork 0
feat: integrate HTML report into library and its tests #2
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
Conversation
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.
Pull request overview
This PR adds HTML report generation capabilities to the LintData library, enabling users to export data quality reports in a visually styled HTML format alongside the existing text format.
Key changes:
- Added new
HTMLReportFormatterclass for generating styled HTML reports with color-coded severity levels - Extended
report()method withformatandoutputparameters for flexible report generation - Comprehensive test suite with 15 test cases covering various scenarios
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
tests/test_html_report.py |
New test file with 15 test cases covering HTML report generation, file output, metadata display, severity levels, and edge cases |
src/lintdata/report_formatter.py |
New formatter class that generates styled HTML reports with responsive design, severity-based color coding, and proper HTML escaping |
src/lintdata/accessor.py |
Enhanced report() method to support HTML format via new format and output parameters while maintaining backward compatibility |
README.md |
Updated roadmap to mark HTML Reports feature as completed |
CHANGELOG.md |
Documented new HTML reporting features and API changes |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Summary
Adds HTML export functionality to LintData with professional visual styling.
New Features
✅ HTML Report Generation
✅ File Export
outputparameter✅ Easy to Use
Documentation
Breaking Changes
None - fully backward compatible. Default format remains 'text'.