Add .eggs to default exclusions (#629)

This commit is contained in:
Jim Brännlund 2018-11-29 23:27:08 +01:00 committed by Jelle Zijlstra
parent 4809e365d4
commit 55121195ce
3 changed files with 7 additions and 5 deletions

View File

@ -100,8 +100,8 @@ Options:
directories that should be excluded on directories that should be excluded on
recursive searches. On Windows, use forward recursive searches. On Windows, use forward
slashes for directories. [default: slashes for directories. [default:
build/|buck-out/|dist/|_build/|\.git/|\.hg/| build/|buck-out/|dist/|_build/|\.eggs/|\.git/|
\.mypy_cache/|\.nox/|\.tox/|\.venv/] \.hg/|\.mypy_cache/|\.nox/|\.tox/|\.venv/]
-q, --quiet Don't emit non-error messages to stderr. Errors -q, --quiet Don't emit non-error messages to stderr. Errors
are still emitted, silence those with are still emitted, silence those with
2>/dev/null. 2>/dev/null.
@ -573,7 +573,8 @@ py36 = true
include = '\.pyi?$' include = '\.pyi?$'
exclude = ''' exclude = '''
/( /(
\.git \.eggs
| \.git
| \.hg | \.hg
| \.mypy_cache | \.mypy_cache
| \.tox | \.tox

View File

@ -51,7 +51,7 @@
__version__ = "18.9b0" __version__ = "18.9b0"
DEFAULT_LINE_LENGTH = 88 DEFAULT_LINE_LENGTH = 88
DEFAULT_EXCLUDES = ( 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?$" DEFAULT_INCLUDES = r"\.pyi?$"
CACHE_DIR = Path(user_cache_dir("black", version=__version__)) CACHE_DIR = Path(user_cache_dir("black", version=__version__))

View File

@ -11,7 +11,8 @@ py36 = true
include = '\.pyi?$' include = '\.pyi?$'
exclude = ''' exclude = '''
/( /(
\.git \.eggs
| \.git
| \.hg | \.hg
| \.mypy_cache | \.mypy_cache
| \.tox | \.tox