Patchwork D7089: black: use multiline exclude definition

login
register
mail settings
Submitter phabricator
Date Oct. 14, 2019, 5:02 p.m.
Message ID <differential-rev-PHID-DREV-blfsimehvtkkq3rah3ds-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/42319/
State Superseded
Headers show

Comments

phabricator - Oct. 14, 2019, 5:02 p.m.
durin42 created this revision.
Herald added subscribers: mercurial-devel, mjpieters.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  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.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D7089

AFFECTED FILES
  black.toml

CHANGE DETAILS




To: durin42, #hg-reviewers
Cc: mjpieters, mercurial-devel

Patch

diff --git a/black.toml b/black.toml
--- a/black.toml
+++ b/black.toml
@@ -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