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