-
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
[refurb
] Implement metaclass_abcmeta
(FURB180
)
#9658
Conversation
|
code | total | + violation | - violation | + fix | - fix |
---|---|---|---|---|---|
FURB180 | 59 | 59 | 0 | 0 | 0 |
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.
Looks great!
Nice work, really thorough. |
.is_some_and(|call_path| matches!(call_path.as_slice(), ["abc", "ABCMeta"])) | ||
{ | ||
return; | ||
} |
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.
I split this condition out of the find_position
, I found it a little easier to read them when enforced separately.
Summary
Implement use-abc-shorthand (FURB180) lint.
I changed the name to be more conformant with ruff rule-naming rules.
Test Plan
cargo test