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
This commit is contained in:
Nathan Goldbaum 2019-02-05 12:50:59 -06:00 committed by Jelle Zijlstra
parent fd9f529d8b
commit 9d749280bb

View File

@ -572,9 +572,11 @@ line-length = 88
py36 = true py36 = true
include = '\.pyi?$' include = '\.pyi?$'
exclude = ''' exclude = '''
/(
\.eggs (
| \.git /(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.hg | \.hg
| \.mypy_cache | \.mypy_cache
| \.tox | \.tox
@ -583,13 +585,11 @@ exclude = '''
| buck-out | buck-out
| build | build
| dist | dist
)/
# The following are specific to Black, you probably don't want those. | foo.py # also separately exclude a file named foo.py in
| blib2to3 # the root of the project
| tests/data )
)/
''' '''
```
</details> </details>