-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 rule PLR6101 #10146
Add rule PLR6101 #10146
Conversation
1f61a93
to
6d0efc2
Compare
|
code | total | + violation | - violation | + fix | - fix |
---|---|---|---|---|---|
PLR0902 | 802 | 0 | 802 | 0 | 0 |
PLR6101 | 210 | 210 | 0 | 0 | 0 |
Formatter (stable)
ℹ️ ecosystem check encountered format errors. (no format changes; 1 project error)
openai/openai-cookbook (error)
warning: Detected debug build without --no-cache.
error: Failed to read examples/How_to_handle_rate_limits.ipynb: Expected a Jupyter Notebook, which must be internally stored as JSON, but this file isn't valid JSON: trailing comma at line 47 column 4
Formatter (preview)
ℹ️ ecosystem check encountered format errors. (no format changes; 1 project error)
openai/openai-cookbook (error)
ruff format --preview
warning: Detected debug build without --no-cache.
error: Failed to read examples/How_to_handle_rate_limits.ipynb: Expected a Jupyter Notebook, which must be internally stored as JSON, but this file isn't valid JSON: trailing comma at line 47 column 4
d4b075f
to
9b8d52b
Compare
9b8d52b
to
019f483
Compare
Thank you @tibor-reiss for the interest in Ruff and opening this PR We're currently revising our rule acceptance criteria as part of the work we do around #1774 and I'm sorry to inform you that we can't accept this rule for now (we can reconsider once #1744). The reasons is that this is a pylint extension rule. We don't want to accept any pylint extension rules because users using the I'm sorry to only inform you of this now after you implemented the rule. I updated #970 and marked the rule as not suitable for Ruff. I plan to go over all rules mentioned in the issue to mark all pylitn extension rules as not ready to implement to avoid this situation in the future. Thak you again for working on the Rule and sorry that I can't give you a more positive feedback |
Add rule consider-using-namedtuple-or-dataclass (PLR6101)
See #970 for rules
Test plan:
cargo test