Commit 9d749280 authored by Nathan Goldbaum's avatar Nathan Goldbaum Committed by Jelle Zijlstra
Browse files

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
parent fd9f529d
Loading
Loading
Loading
Loading
+7 −7
Changes for README.md: 7 added lines, 7 removed lines.
Original line number Diff line number Diff line
@@ -572,9 +572,11 @@ line-length = 88
py36 = true
include = '\.pyi?$'
exclude = '''

(
  /(
    \.eggs
  | \.git
      \.eggs         # exclude a few common directories in the
    | \.git          # root of the project
    | \.hg
    | \.mypy_cache
    | \.tox
@@ -583,13 +585,11 @@ exclude = '''
    | buck-out
    | build
    | dist

  # The following are specific to Black, you probably don't want those.
  | blib2to3
  | tests/data
  )/
  | foo.py           # also separately exclude a file named foo.py in
                     # the root of the project
)
'''
```

</details>