Skip to content

Commit

Permalink
Use *is no longer supported* over *has been deprecated* in message
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaReiser committed Jun 26, 2024
1 parent fa11620 commit b8d1ba6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/ruff/src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -924,7 +924,7 @@ fn resolve_output_format(
output_format: Option<OutputFormat>,
) -> anyhow::Result<Option<OutputFormat>> {
if let Some(OutputFormat::Text) = output_format {
Err(anyhow!("`--output-format=text` is deprecated. Use `--output-format=full` or `--output-format=concise` instead."))
Err(anyhow!("`--output-format=text` is no longer supported. Use `--output-format=full` or `--output-format=concise` instead."))
} else {
Ok(output_format)
}
Expand Down
2 changes: 1 addition & 1 deletion crates/ruff/tests/deprecation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ fn ensure_output_format_is_deprecated() {
----- stderr -----
ruff failed
Cause: `--output-format=text` is deprecated. Use `--output-format=full` or `--output-format=concise` instead.
Cause: `--output-format=text` is no longer supported. Use `--output-format=full` or `--output-format=concise` instead.
"###);
}
2 changes: 1 addition & 1 deletion crates/ruff_workspace/src/configuration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ impl Configuration {
|path| format!("`{}`", fs::relativize_path(path)),
);
return Err(anyhow!(
r#"The Setting `output_format=text` has been deprecated. Update {config_to_update} to use `output-format="concise"` or `output-format="full"` instead."#
r#"The option `output_format=text` is no longer supported. Update {config_to_update} to use `output-format="concise"` or `output-format="full"` instead."#
));
}

Expand Down

0 comments on commit b8d1ba6

Please sign in to comment.