mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-29 05:15:12 +00:00
Update applicability messages for clarity in tests (#8541)
These names are only ever displayed internally right now and we could be clearer in our test snapshots. The diff is kind of scary because all of the tests fixtures are updated.
This commit is contained in:
parent
7dabc4598b
commit
7873ca38e5
523 changed files with 3085 additions and 3086 deletions
|
@ -54,9 +54,9 @@ impl Display for Diff<'_> {
|
|||
|
||||
let message = match self.fix.applicability() {
|
||||
// TODO(zanieb): Adjust this messaging once it's user-facing
|
||||
Applicability::Safe => "Fix",
|
||||
Applicability::Unsafe => "Suggested fix",
|
||||
Applicability::Display => "Possible fix",
|
||||
Applicability::Safe => "Safe fix",
|
||||
Applicability::Unsafe => "Unsafe fix",
|
||||
Applicability::DisplayOnly => "Display-only fix",
|
||||
};
|
||||
writeln!(f, "ℹ {}", message.blue())?;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue