mirror of https://github.com/astral-sh/ruff
Make clean a standalone command
This commit is contained in:
parent
c9aa7b9308
commit
a2bf3916f3
|
|
@ -92,9 +92,7 @@ pub(crate) fn inner_main() -> Result<ExitCode> {
|
||||||
}
|
}
|
||||||
if cli.clean {
|
if cli.clean {
|
||||||
commands::clean(&log_level)?;
|
commands::clean(&log_level)?;
|
||||||
if cli.files.is_empty() {
|
return Ok(ExitCode::SUCCESS);
|
||||||
return Ok(ExitCode::SUCCESS);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Construct the "default" settings. These are used when no `pyproject.toml`
|
// Construct the "default" settings. These are used when no `pyproject.toml`
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue