mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-28 21:05:08 +00:00
[refurb] Implement repeated-append
rule (FURB113
) (#6702)
## Summary As an initial effort with replicating `refurb` rules (#1348 ), this PR adds support for [FURB113](https://github.com/dosisod/refurb/blob/master/refurb/checks/builtin/list_extend.py) and adds a new category of checks. ## Test Plan I included a new test + checked that all other tests pass.
This commit is contained in:
parent
1439bb592e
commit
26d53c56a2
13 changed files with 1003 additions and 11 deletions
|
@ -117,7 +117,7 @@ impl Ranged for Member<'_> {
|
|||
}
|
||||
|
||||
/// A definition within a Python program.
|
||||
#[derive(Debug)]
|
||||
#[derive(Debug, is_macro::Is)]
|
||||
pub enum Definition<'a> {
|
||||
Module(Module<'a>),
|
||||
Member(Member<'a>),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue