diff --git a/src/tools/tidy/config/black.toml b/src/tools/tidy/config/black.toml index a1e1eef987a..d5b8b198afb 100644 --- a/src/tools/tidy/config/black.toml +++ b/src/tools/tidy/config/black.toml @@ -13,5 +13,6 @@ extend-exclude = """(\ src/doc/embedded-book/|\ src/tools/rustc-perf/|\ src/tools/enzyme/|\ - library/backtrace/ + library/backtrace/|\ + src/gcc/ )""" diff --git a/src/tools/tidy/config/ruff.toml b/src/tools/tidy/config/ruff.toml index 2be109010a0..de23d93593c 100644 --- a/src/tools/tidy/config/ruff.toml +++ b/src/tools/tidy/config/ruff.toml @@ -18,6 +18,7 @@ extend-exclude = [ "library/backtrace/", "src/tools/enzyme/", "src/tools/rustc-perf/", + "src/gcc/", # Hack: CI runs from a subdirectory under the main checkout "../src/doc/nomicon/", "../src/tools/cargo/", @@ -32,6 +33,7 @@ extend-exclude = [ "../library/backtrace/", "../src/tools/enzyme/", "../src/tools/rustc-perf/", + "../src/gcc/", ] [lint] diff --git a/src/tools/tidy/src/walk.rs b/src/tools/tidy/src/walk.rs index 4a69022ebdc..8cbc263689b 100644 --- a/src/tools/tidy/src/walk.rs +++ b/src/tools/tidy/src/walk.rs @@ -32,6 +32,7 @@ pub fn filter_dirs(path: &Path) -> bool { "src/doc/rust-by-example", "src/doc/rustc-dev-guide", "src/doc/reference", + "src/gcc", // Filter RLS output directories "target/rls", "src/bootstrap/target",