changeset 43224:2a201b366d5b

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
author Augie Fackler <augie@google.com>
date Mon, 14 Oct 2019 12:54:49 -0400
parents 15c05732d177
children 8343070ed758
files black.toml
diffstat 1 files changed, 12 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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