mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-23 18:43:40 +00:00
Extend RET503
autofixes to "end of statement", including comments (#3324)
This commit is contained in:
parent
cdbe2ee496
commit
eb42ce9319
5 changed files with 167 additions and 18 deletions
|
@ -16,8 +16,8 @@ pub struct Args {
|
|||
|
||||
pub fn main(args: &Args) -> Result<()> {
|
||||
let contents = fs::read_to_string(&args.file)?;
|
||||
for (_, tok, _) in lexer::lex(&contents, Mode::Module).flatten() {
|
||||
println!("{tok:#?}");
|
||||
for (start, tok, end) in lexer::lex(&contents, Mode::Module).flatten() {
|
||||
println!("{start:#?} {tok:#?} {end:#?}");
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue