From 9d749280bb1051991d391e0ee70174a613da16fc Mon Sep 17 00:00:00 2001 From: Nathan Goldbaum Date: Tue, 5 Feb 2019 12:50:59 -0600 Subject: [PATCH] show how to exclude individual files in the exclude example (#663) * show how to exclude individual files in the exclude example * include comments in the regex --- README.md | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index c548ce4..9fe9203 100644 --- a/README.md +++ b/README.md @@ -572,24 +572,24 @@ line-length = 88 py36 = true include = '\.pyi?$' exclude = ''' -/( - \.eggs - | \.git - | \.hg - | \.mypy_cache - | \.tox - | \.venv - | _build - | buck-out - | build - | dist - - # The following are specific to Black, you probably don't want those. - | blib2to3 - | tests/data -)/ + +( + /( + \.eggs # exclude a few common directories in the + | \.git # root of the project + | \.hg + | \.mypy_cache + | \.tox + | \.venv + | _build + | buck-out + | build + | dist + )/ + | foo.py # also separately exclude a file named foo.py in + # the root of the project +) ''' -``` -- 2.39.5