-
-
Notifications
You must be signed in to change notification settings - Fork 127
Add explanations for Ruff lint ignore #1769
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
Add explanations for Ruff lint ignore #1769
Conversation
Summary by CodeRabbit
WalkthroughThe change updates the Changes
Estimated code review effort1 (~5 minutes) 📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 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). (5)
✨ Finishing Touches🧪 Generate unit tests
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
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: 0
🧹 Nitpick comments (1)
backend/pyproject.toml (1)
125-144
: Minor style nit — make comment wording consistent.
A few comments mix styles ("DJ012: Django - using old staticfiles tag."
vs"PD: Pandas - best practices violations."
). Consider using a uniform pattern (e.g.<CODE>: <brief rule description>
without an extra “Django -” / “Pandas -”) so the list scans identically line-to-line.Example diff (illustrative):
- "PD", # PD: Pandas - best practices violations. + "PD", # PD: Pandas best-practice violations.
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
backend/pyproject.toml
(1 hunks)
🔇 Additional comments (1)
backend/pyproject.toml (1)
125-144
: Expanded ignore-list comments greatly improve maintainability — well done!
Adding a one-liner explanation for every ignored rule lets future contributors understand why each code is suppressed without trawling through Ruff docs. No functional changes introduced, and the TOML syntax (inline comments + trailing commas) stays valid for Ruff 0.11+.
|
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.
LGTM
Proposed change
Added concise explanations as comments to each item in the
ruff
lintignore
list. This improves code clarity and maintainability for future developers.Resolves #1739
Added comments to the
ignore
list within thetool.ruff.lint
section, explaining the purpose of each ignored Ruff rule. This enhances the clarity ofpyproject.toml
regarding linting configurations.Checklist
make check-test
locally; all checks and tests passed.make check
passed successfully. However,make test
failed locally with aTLS handshake timeout
/EOF
error when trying to pull themcr.microsoft.com/playwright
Docker image. This appears to be an environmental issue specific to my local machine's network/Docker setup and not related to the code changes in this PR. I expect the CI pipeline to pass these tests on the project's build environment.