Exclude venv directory by default (#1683)
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
This commit is contained in:
parent
4d36304a2c
commit
e4003c2c43
@ -45,6 +45,8 @@
|
||||
- PR #2053: Python 2 support is now optional, install with
|
||||
`python3 -m pip install black[python2]` to maintain support.
|
||||
|
||||
- Exclude `venv` directory by default (#1683)
|
||||
|
||||
#### _Packaging_
|
||||
|
||||
- Self-contained native _Black_ binaries are now provided for releases via GitHub
|
||||
|
@ -133,8 +133,8 @@ Options:
|
||||
directories on all platforms (Windows, too).
|
||||
Exclusions are calculated first, inclusions
|
||||
later. [default: /(\.direnv|\.eggs|\.git|\.
|
||||
hg|\.mypy_cache|\.nox|\.tox|\.venv|\.svn|_bu
|
||||
ild|buck-out|build|dist)/]
|
||||
hg|\.mypy_cache|\.nox|\.tox|\.venv|venv|\.sv
|
||||
n|_build|buck-out|build|dist)/]
|
||||
|
||||
--extend-exclude TEXT Like --exclude, but adds additional files
|
||||
and directories on top of the excluded
|
||||
|
@ -87,8 +87,8 @@ Options:
|
||||
directories on all platforms (Windows, too).
|
||||
Exclusions are calculated first, inclusions
|
||||
later. [default: /(\.direnv|\.eggs|\.git|\.
|
||||
hg|\.mypy_cache|\.nox|\.tox|\.venv|\.svn|_bu
|
||||
ild|buck-out|build|dist)/]
|
||||
hg|\.mypy_cache|\.nox|\.tox|\.venv|venv|\.sv
|
||||
n|_build|buck-out|build|dist)/]
|
||||
|
||||
--force-exclude TEXT Like --exclude, but files and directories
|
||||
matching this regex will be excluded even
|
||||
|
@ -82,7 +82,7 @@
|
||||
import colorama # noqa: F401
|
||||
|
||||
DEFAULT_LINE_LENGTH = 88
|
||||
DEFAULT_EXCLUDES = r"/(\.direnv|\.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|venv|\.svn|_build|buck-out|build|dist)/" # noqa: B950
|
||||
DEFAULT_INCLUDES = r"\.pyi?$"
|
||||
CACHE_DIR = Path(user_cache_dir("black", version=__version__))
|
||||
STDIN_PLACEHOLDER = "__BLACK_STDIN_FILENAME__"
|
||||
|
Loading…
Reference in New Issue
Block a user