mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-03 18:28:24 +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
|
@ -177,7 +177,7 @@ pub struct Options {
|
|||
/// Note that you'll typically want to use
|
||||
/// [`extend-exclude`](#extend-exclude) to modify the excluded paths.
|
||||
#[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]",
|
||||
example = r#"
|
||||
exclude = [".venv"]
|
||||
|
|
|
@ -128,7 +128,6 @@ pub(crate) static EXCLUDE: &[FilePattern] = &[
|
|||
FilePattern::Builtin("__pypackages__"),
|
||||
FilePattern::Builtin("_build"),
|
||||
FilePattern::Builtin("buck-out"),
|
||||
FilePattern::Builtin("build"),
|
||||
FilePattern::Builtin("dist"),
|
||||
FilePattern::Builtin("node_modules"),
|
||||
FilePattern::Builtin("site-packages"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue