From: Chris Rose Date: Thu, 13 Aug 2020 02:28:01 +0000 (-0700) Subject: Add the direnv base directory to the default excludes (#1564) X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/149b38d67430f0c580a05c821db767592e7d55e2?hp=f825e7ef28c65689e06453d0c3a00310b90cdfdb Add the direnv base directory to the default excludes (#1564) Co-authored-by: Chris Rose --- diff --git a/README.md b/README.md index d4b239b..aead10c 100644 --- a/README.md +++ b/README.md @@ -548,6 +548,7 @@ Multiple contributions by: - [Christian Clauss](mailto:cclauss@bluewin.ch) - [Christian Heimes](mailto:christian@python.org) - [Chuck Wooters](mailto:chuck.wooters@microsoft.com) +- [Chris Rose](mailto:offline@offby1.net) - Codey Oxley - [Cong](mailto:congusbongus@gmail.com) - [Cooper Ry Lees](mailto:me@cooperlees.com) diff --git a/src/black/__init__.py b/src/black/__init__.py index 7ce2ac8..df38fd0 100644 --- a/src/black/__init__.py +++ b/src/black/__init__.py @@ -65,7 +65,7 @@ if TYPE_CHECKING: import colorama # noqa: F401 DEFAULT_LINE_LENGTH = 88 -DEFAULT_EXCLUDES = r"/(\.eggs|\.git|\.hg|\.mypy_cache|\.nox|\.tox|\.venv|\.svn|_build|buck-out|build|dist)/" # noqa: B950 +DEFAULT_EXCLUDES = r"/(\.direnv|\.eggs|\.git|\.hg|\.mypy_cache|\.nox|\.tox|\.venv|\.svn|_build|buck-out|build|dist)/" # noqa: B950 DEFAULT_INCLUDES = r"\.pyi?$" CACHE_DIR = Path(user_cache_dir("black", version=__version__))