diff --git a/ruff_cli/src/main.rs b/ruff_cli/src/main.rs index 9b1f9b8d5c..4b156e71db 100644 --- a/ruff_cli/src/main.rs +++ b/ruff_cli/src/main.rs @@ -102,6 +102,7 @@ fn check(args: CheckArgs, log_level: LogLevel) -> Result { } if cli.show_files { commands::show_files(&cli.files, &pyproject_strategy, &overrides)?; + return Ok(ExitCode::SUCCESS); } // Extract options that are included in `Settings`, but only apply at the top