-
-
Notifications
You must be signed in to change notification settings - Fork 313
Fix: pre-commit failure due to missing height and width attributes in <img> tag #4750
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
WalkthroughThree small edits: added explicit width/height attributes to an avatar image in the Top Earners list, adjusted indentation of a class attribute in the home template, and removed two unused imports from a Django views module. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro Knowledge base: Disabled due to 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
Knowledge base: Disabled due to Reviews -> Disable Knowledge Base setting
📒 Files selected for processing (3)
website/templates/bounties_list.html(1 hunks)website/templates/home.html(1 hunks)website/views/core.py(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
- GitHub Check: Run Tests
- GitHub Check: docker-test
🔇 Additional comments (2)
website/templates/home.html (1)
251-251: Formatting-only change; no functional impact.Line 251 reformats the anchor tag's
classattribute by moving it to a new line. This is a pure whitespace adjustment with no impact on HTML structure, CSS classes, or rendering behavior.website/views/core.py (1)
35-35: Unused imports safely removed.Removing
OuterRefandSubqueryfrom the imports is appropriate—these are not used within the visible portions of the file. The retained imports (Case,Count,DecimalField,F,Q,Sum,Value,When) are actively used in query operations throughout the views, so the removal is low-risk cleanup.
Fixes: #4749
Description:
This PR fixes the issue where the
djLinthook was failing duringpre-commit run --all-filesbecause of an HTML linting rule violation.The error reported: