From: Ɓukasz Langa Date: Fri, 1 Jun 2018 02:09:51 +0000 (-0700) Subject: Sort default excludes, include the leading slash X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/6fa60ba39d137bff08a7aa78beffa4773eb24121 Sort default excludes, include the leading slash --- diff --git a/black.py b/black.py index ce4a44f..61b884a 100644 --- a/black.py +++ b/black.py @@ -47,7 +47,7 @@ from blib2to3.pgen2.parse import ParseError __version__ = "18.5b1" DEFAULT_LINE_LENGTH = 88 DEFAULT_EXCLUDES = ( - r"build/|buck-out/|dist/|_build/|\.git/|\.hg/|\.mypy_cache/|\.tox/|\.venv/" + r"/(\.git|\.hg|\.mypy_cache|\.tox|\.venv|_build|buck-out|build|dist)/" ) DEFAULT_INCLUDES = r"\.pyi?$" CACHE_DIR = Path(user_cache_dir("black", version=__version__))