mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-01 06:11:43 +00:00
Remove build
from the default exclusion list (#10093)
## Summary This is a not-unpopular directory name, and it's led to tons of issues and user confusion (most recently: https://github.com/astral-sh/ruff-pre-commit/issues/69). I've wanted to remove it for a long time, but we need to do so as part of a minor release.
This commit is contained in:
parent
8044c24c7e
commit
317d2e4c75
3 changed files with 1 additions and 4 deletions
|
@ -44,7 +44,6 @@ file_resolver.exclude = [
|
||||||
"__pypackages__",
|
"__pypackages__",
|
||||||
"_build",
|
"_build",
|
||||||
"buck-out",
|
"buck-out",
|
||||||
"build",
|
|
||||||
"dist",
|
"dist",
|
||||||
"node_modules",
|
"node_modules",
|
||||||
"site-packages",
|
"site-packages",
|
||||||
|
@ -366,4 +365,3 @@ formatter.docstring_code_format = disabled
|
||||||
formatter.docstring_code_line_width = dynamic
|
formatter.docstring_code_line_width = dynamic
|
||||||
|
|
||||||
----- stderr -----
|
----- stderr -----
|
||||||
|
|
||||||
|
|
|
@ -177,7 +177,7 @@ pub struct Options {
|
||||||
/// Note that you'll typically want to use
|
/// Note that you'll typically want to use
|
||||||
/// [`extend-exclude`](#extend-exclude) to modify the excluded paths.
|
/// [`extend-exclude`](#extend-exclude) to modify the excluded paths.
|
||||||
#[option(
|
#[option(
|
||||||
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"]"#,
|
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"]"#,
|
||||||
value_type = "list[str]",
|
value_type = "list[str]",
|
||||||
example = r#"
|
example = r#"
|
||||||
exclude = [".venv"]
|
exclude = [".venv"]
|
||||||
|
|
|
@ -128,7 +128,6 @@ pub(crate) static EXCLUDE: &[FilePattern] = &[
|
||||||
FilePattern::Builtin("__pypackages__"),
|
FilePattern::Builtin("__pypackages__"),
|
||||||
FilePattern::Builtin("_build"),
|
FilePattern::Builtin("_build"),
|
||||||
FilePattern::Builtin("buck-out"),
|
FilePattern::Builtin("buck-out"),
|
||||||
FilePattern::Builtin("build"),
|
|
||||||
FilePattern::Builtin("dist"),
|
FilePattern::Builtin("dist"),
|
||||||
FilePattern::Builtin("node_modules"),
|
FilePattern::Builtin("node_modules"),
|
||||||
FilePattern::Builtin("site-packages"),
|
FilePattern::Builtin("site-packages"),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue