black: use multiline exclude definition
authorAugie Fackler <augie@google.com>
Mon, 14 Oct 2019 12:54:49 -0400
changeset 43224 2a201b366d5b
parent 43223 15c05732d177
child 43225 8343070ed758
black: use multiline exclude definition Our excludes list is pretty complicated, so let's give ourselves some readability. Black treats multiline exclude definitions as verbse regular expressions, so we can split this up and make it easier to consume. Differential Revision: https://phab.mercurial-scm.org/D7089
black.toml
--- a/black.toml	Mon Oct 14 12:52:33 2019 -0400
+++ b/black.toml	Mon Oct 14 12:54:49 2019 -0400
@@ -1,5 +1,16 @@
 [tool.black]
 line-length = 80
-exclude = 'build/|wheelhouse/|dist/|packages/|\.hg/|\.mypy_cache/|\.venv/|mercurial/thirdparty/|hgext/fsmonitor/pywatchman/|contrib/python-zstandard/'
+exclude = '''
+build/
+| wheelhouse/
+| dist/
+| packages/
+| \.hg/
+| \.mypy_cache/
+| \.venv/
+| mercurial/thirdparty/
+| hgext/fsmonitor/pywatchman/
+| contrib/python-zstandard/
+'''
 skip-string-normalization = true
 quiet = true