Skip to content

Commit

Permalink
Add .eggs to default exclusions (#629)
Browse files Browse the repository at this point in the history
  • Loading branch information
BeyondEvil authored and JelleZijlstra committed Nov 29, 2018
1 parent 4809e36 commit 5512119
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -573,7 +573,8 @@ py36 = true
include = '\.pyi?$'
exclude = '''
/(
\.git
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
Expand Down
2 changes: 1 addition & 1 deletion black.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
__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__))
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ py36 = true
include = '\.pyi?$'
exclude = '''
/(
\.git
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
Expand Down

0 comments on commit 5512119

Please sign in to comment.