From 55121195ce526aed2130c4df142b87e066744179 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jim=20Br=C3=A4nnlund?= Date: Thu, 29 Nov 2018 23:27:08 +0100 Subject: [PATCH] Add .eggs to default exclusions (#629) --- README.md | 7 ++++--- black.py | 2 +- pyproject.toml | 3 ++- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index b6218cf..7be8093 100644 --- a/README.md +++ b/README.md @@ -100,8 +100,8 @@ Options: directories that should be excluded on recursive searches. On Windows, use forward slashes for directories. [default: - build/|buck-out/|dist/|_build/|\.git/|\.hg/| - \.mypy_cache/|\.nox/|\.tox/|\.venv/] + build/|buck-out/|dist/|_build/|\.eggs/|\.git/| + \.hg/|\.mypy_cache/|\.nox/|\.tox/|\.venv/] -q, --quiet Don't emit non-error messages to stderr. Errors are still emitted, silence those with 2>/dev/null. @@ -573,7 +573,8 @@ py36 = true include = '\.pyi?$' exclude = ''' /( - \.git + \.eggs + | \.git | \.hg | \.mypy_cache | \.tox diff --git a/black.py b/black.py index fd0364b..c1cc080 100644 --- a/black.py +++ b/black.py @@ -51,7 +51,7 @@ from blib2to3.pgen2.parse import ParseError __version__ = "18.9b0" DEFAULT_LINE_LENGTH = 88 DEFAULT_EXCLUDES = ( - r"/(\.git|\.hg|\.mypy_cache|\.nox|\.tox|\.venv|_build|buck-out|build|dist)/" + r"/(\.eggs|\.git|\.hg|\.mypy_cache|\.nox|\.tox|\.venv|_build|buck-out|build|dist)/" ) DEFAULT_INCLUDES = r"\.pyi?$" CACHE_DIR = Path(user_cache_dir("black", version=__version__)) diff --git a/pyproject.toml b/pyproject.toml index 6ac19bc..fca5055 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,7 +11,8 @@ py36 = true include = '\.pyi?$' exclude = ''' /( - \.git + \.eggs + | \.git | \.hg | \.mypy_cache | \.tox -- 2.39.5