From: Tim Swast Date: Tue, 25 Sep 2018 15:25:58 +0000 (-0700) Subject: Add .nox directories to default exclude (#525) X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/2d99573b343cbaa721746af8df0ffb27e93140d4 Add .nox directories to default exclude (#525) [Nox](https://nox.readthedocs.io/) is similar to Tox. It creates a .nox directory that contains virtualenv for testing with different Python versions. --- diff --git a/README.md b/README.md index a23cb61..066ab75 100644 --- a/README.md +++ b/README.md @@ -99,7 +99,7 @@ Options: recursive searches. On Windows, use forward slashes for directories. [default: build/|buck-out/|dist/|_build/|\.git/|\.hg/| - \.mypy_cache/|\.tox/|\.venv/] + \.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. diff --git a/black.py b/black.py index 5224741..66fc2a7 100644 --- a/black.py +++ b/black.py @@ -50,7 +50,7 @@ from blib2to3.pgen2.parse import ParseError __version__ = "18.6b4" DEFAULT_LINE_LENGTH = 88 DEFAULT_EXCLUDES = ( - r"/(\.git|\.hg|\.mypy_cache|\.tox|\.venv|_build|buck-out|build|dist)/" + r"/(\.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__))