From 2d99573b343cbaa721746af8df0ffb27e93140d4 Mon Sep 17 00:00:00 2001 From: Tim Swast Date: Tue, 25 Sep 2018 08:25:58 -0700 Subject: [PATCH] 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. --- README.md | 2 +- black.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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__)) -- 2.39.5