Skip to content

Commit

Permalink
Ignore gcc submodule for tidy checks
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed May 23, 2024
1 parent fff2329 commit 6736333
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tools/tidy/config/black.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ extend-exclude = """(\
src/llvm-project/|\
src/doc/embedded-book/|\
src/tools/rustc-perf/|\
library/backtrace/
library/backtrace/|\
src/gcc/
)"""
2 changes: 2 additions & 0 deletions src/tools/tidy/config/ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ extend-exclude = [
"src/doc/embedded-book/",
"library/backtrace/",
"src/tools/rustc-perf/",
"src/gcc/",
# Hack: CI runs from a subdirectory under the main checkout
"../src/doc/nomicon/",
"../src/tools/cargo/",
Expand All @@ -40,4 +41,5 @@ extend-exclude = [
"../src/doc/embedded-book/",
"../library/backtrace/",
"../src/tools/rustc-perf/",
"../src/gcc/",
]
1 change: 1 addition & 0 deletions src/tools/tidy/src/walk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,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",
Expand Down

0 comments on commit 6736333

Please sign in to comment.