From: Ray Bell Date: Wed, 17 May 2023 02:47:45 +0000 (-0400) Subject: Sort DEFAULT_EXCLUDES and add .vscode, .pytest_cache and .ruff_cache (#3691) X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/db3668a381e82866269ff25cb4cd11d2a53d009a Sort DEFAULT_EXCLUDES and add .vscode, .pytest_cache and .ruff_cache (#3691) Co-authored-by: Ray Bell --- diff --git a/CHANGES.md b/CHANGES.md index f9bec18..a1bc7d5 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -21,6 +21,8 @@ +- `.pytest_cache`, `.ruff_cache` and `.vscode` are now excluded by default (#3691) + ### Packaging diff --git a/src/black/const.py b/src/black/const.py index 0e13f31..ee46667 100644 --- a/src/black/const.py +++ b/src/black/const.py @@ -1,4 +1,4 @@ DEFAULT_LINE_LENGTH = 88 -DEFAULT_EXCLUDES = r"/(\.direnv|\.eggs|\.git|\.hg|\.mypy_cache|\.nox|\.tox|\.venv|venv|\.svn|\.ipynb_checkpoints|_build|buck-out|build|dist|__pypackages__)/" # noqa: B950 +DEFAULT_EXCLUDES = r"/(\.direnv|\.eggs|\.git|\.hg|\.ipynb_checkpoints|\.mypy_cache|\.nox|\.pytest_cache|\.ruff_cache|\.tox|\.svn|\.venv|\.vscode|__pypackages__|_build|buck-out|build|dist|venv)/" # noqa: B950 DEFAULT_INCLUDES = r"(\.pyi?|\.ipynb)$" STDIN_PLACEHOLDER = "__BLACK_STDIN_FILENAME__"