Skip to content

Commit 2607f16

Browse files
committed
ignore untracked with extra-checks
1 parent bdd0224 commit 2607f16

File tree

1 file changed

+3
-1
lines changed
  • src/tools/tidy/src/extra_checks

1 file changed

+3
-1
lines changed

src/tools/tidy/src/extra_checks/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,8 +372,10 @@ fn run_ruff(
372372
cache_dir.as_os_str(),
373373
]);
374374

375+
let files;
375376
if file_args_ruff.is_empty() {
376-
file_args_ruff.push(root_path.as_os_str());
377+
files = find_with_extension(root_path, None, &[OsStr::new("py")])?;
378+
file_args_ruff.extend(files.iter().map(|f| f.as_os_str()));
377379
}
378380

379381
let mut args: Vec<&OsStr> = ruff_args.to_vec();

0 commit comments

Comments
 (0)