-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[pylint
] Add PLE1141 DictIterMissingItems
#9845
[pylint
] Add PLE1141 DictIterMissingItems
#9845
Conversation
|
Could it be that the main branch on your fork is behind the main branch on this repository? IOW, can you try rebasing your branch with the latest changes on main? |
fca109e
to
2e496dc
Compare
@dhruvmanila A rebase did not seem to fix the issue. The edit of the comment is still the same. I don't see how this PR could have that ecosystem impact without any test related to these messages failing? |
crates/ruff_linter/resources/test/fixtures/pylint/dict_iter_missing_items.py
Outdated
Show resolved
Hide resolved
crates/ruff_linter/src/rules/pylint/rules/dict_iter_missing_items.rs
Outdated
Show resolved
Hide resolved
Yeah, don't worry about the ecosystem results. |
9ddbc95
to
698c2e4
Compare
Thanks for the feedback @dhruvmanila. I force pushed as I made a |
CodSpeed Performance ReportMerging #9845 will not alter performanceComparing Summary
|
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.
Thanks!
Hi, @charliermarsh is there anything I can do to move this PR forward? |
I think it's good to go. I'll merge it but feel free to review it and I can make any follow-up changes @charliermarsh |
DictIterMissingItems
pylint
] Add PLE1141 DictIterMissingItems
Thanks @dhruvmanila. |
## Summary References astral-sh#970. Implements [`dict-iter-missing-items`](https://pylint.readthedocs.io/en/latest/user_guide/messages/error/dict-iter-missing-items.html). Took the tests from "upstream" [here](https://github.com/DanielNoord/pylint/blob/main/tests/functional/d/dict_iter_missing_items.py). ~I wasn't able to implement code for one false positive, but it is pretty estoric: pylint-dev/pylint#3283. I would personally argue that adding this check as preview rule without supporting this specific use case is fine. I did add a "test" for it.~ This was implemented. ## Test Plan Followed the Contributing guide to create tests, hopefully I didn't miss any. Also ran CI on my own fork and seemed to be all okay 😄 ~Edit: the ecosystem check seems a bit all over the place? 😅~ All good. --------- Co-authored-by: Dhruv Manilawala <[email protected]> Co-authored-by: Charlie Marsh <[email protected]>
Summary
References #970.
Implements
dict-iter-missing-items
.Took the tests from "upstream" here.
I wasn't able to implement code for one false positive, but it is pretty estoric: pylint-dev/pylint#3283. I would personally argue that adding this check as preview rule without supporting this specific use case is fine. I did add a "test" for it.This was implemented.Test Plan
Followed the Contributing guide to create tests, hopefully I didn't miss any.
Also ran CI on my own fork and seemed to be all okay 😄
Edit: the ecosystem check seems a bit all over the place? 😅All good.