Skip to content

Commit c2f7d3c

Browse files
committed
Remove build from the default exclusion list
1 parent 8044c24 commit c2f7d3c

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

crates/ruff/tests/snapshots/show_settings__display_default_settings.snap

-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ file_resolver.exclude = [
4444
"__pypackages__",
4545
"_build",
4646
"buck-out",
47-
"build",
4847
"dist",
4948
"node_modules",
5049
"site-packages",
@@ -366,4 +365,3 @@ formatter.docstring_code_format = disabled
366365
formatter.docstring_code_line_width = dynamic
367366

368367
----- stderr -----
369-

crates/ruff_workspace/src/options.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ pub struct Options {
177177
/// Note that you'll typically want to use
178178
/// [`extend-exclude`](#extend-exclude) to modify the excluded paths.
179179
#[option(
180-
default = r#"[".bzr", ".direnv", ".eggs", ".git", ".git-rewrite", ".hg", ".mypy_cache", ".nox", ".pants.d", ".pytype", ".ruff_cache", ".svn", ".tox", ".venv", "__pypackages__", "_build", "buck-out", "build", "dist", "node_modules", "venv"]"#,
180+
default = r#"[".bzr", ".direnv", ".eggs", ".git", ".git-rewrite", ".hg", ".mypy_cache", ".nox", ".pants.d", ".pytype", ".ruff_cache", ".svn", ".tox", ".venv", "__pypackages__", "_build", "buck-out", "dist", "node_modules", "venv"]"#,
181181
value_type = "list[str]",
182182
example = r#"
183183
exclude = [".venv"]

crates/ruff_workspace/src/settings.rs

-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@ pub(crate) static EXCLUDE: &[FilePattern] = &[
128128
FilePattern::Builtin("__pypackages__"),
129129
FilePattern::Builtin("_build"),
130130
FilePattern::Builtin("buck-out"),
131-
FilePattern::Builtin("build"),
132131
FilePattern::Builtin("dist"),
133132
FilePattern::Builtin("node_modules"),
134133
FilePattern::Builtin("site-packages"),

0 commit comments

Comments
 (0)