From: Nathan Goldbaum Date: Tue, 5 Feb 2019 18:50:59 +0000 (-0600) Subject: show how to exclude individual files in the exclude example (#663) X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/9d749280bb1051991d391e0ee70174a613da16fc 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 --- 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 +) ''' -```