mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-31 15:48:22 +00:00
Use the formatter prelude in more files (#6882)
Removes a bunch of imports that are made redundant by the prelude.
This commit is contained in:
parent
91a780c771
commit
edb9b0c62a
81 changed files with 139 additions and 230 deletions
|
@ -89,9 +89,10 @@ for group, group_nodes in nodes_grouped.items():
|
|||
continue
|
||||
|
||||
code = f"""
|
||||
use crate::{{verbatim_text, FormatNodeRule, PyFormatter}};
|
||||
use ruff_formatter::{{write, Buffer, FormatResult}};
|
||||
use ruff_formatter::write;
|
||||
use ruff_python_ast::{node};
|
||||
use crate::verbatim_text;
|
||||
use crate::prelude::*;
|
||||
|
||||
#[derive(Default)]
|
||||
pub struct Format{node};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue