mirror of
https://github.com/astral-sh/ruff.git
synced 2025-11-25 14:24:10 +00:00
[ty] Limit shown import paths to at most 5 unless ty runs with -v (#20912)
This commit is contained in:
parent
c8133104e8
commit
9393279f65
11 changed files with 155 additions and 12 deletions
|
|
@ -782,6 +782,8 @@ impl CliTest {
|
|||
let mut settings = insta::Settings::clone_current();
|
||||
settings.add_filter(&tempdir_filter(&project_dir), "<temp_dir>/");
|
||||
settings.add_filter(r#"\\(\w\w|\s|\.|")"#, "/$1");
|
||||
// 0.003s
|
||||
settings.add_filter(r"\d.\d\d\ds", "0.000s");
|
||||
settings.add_filter(
|
||||
r#"The system cannot find the file specified."#,
|
||||
"No such file or directory",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue