From 71fe24824006ba9ffc54f8e166c53a90721ecebb Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Thu, 23 May 2024 10:53:04 +0200 Subject: [PATCH] Ignore gcc submodule for tidy checks --- src/tools/tidy/config/black.toml | 3 ++- src/tools/tidy/config/ruff.toml | 2 ++ src/tools/tidy/src/walk.rs | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) 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",