Patchwork D6974: examples: include a sample of how to use black with fix

login
register
mail settings
Submitter phabricator
Date Oct. 5, 2019, 3:47 p.m.
Message ID <cedc6950e1a7b38e1f8db52f2c1e3ccc@localhost.localdomain>
Download mbox | patch
Permalink /patch/41984/
State Not Applicable
Headers show

Comments

phabricator - Oct. 5, 2019, 3:47 p.m.
durin42 updated this revision to Diff 16834.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6974?vs=16821&id=16834

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D6974/new/

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

AFFECTED FILES
  contrib/examples/fix.hgrc

CHANGE DETAILS




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

Patch

diff --git a/contrib/examples/fix.hgrc b/contrib/examples/fix.hgrc
--- a/contrib/examples/fix.hgrc
+++ b/contrib/examples/fix.hgrc
@@ -4,3 +4,7 @@ 
 
 rustfmt:command = rustfmt {rootpath}
 rustfmt:pattern = set:**.rs
+
+# We use black, but currently with https://github.com/psf/black/pull/826 applied.
+# black:command = black --skip-string-normalization
+# black:pattern = set:**.py - mercurial/thirdparty/** - "contrib/python-zstandard/**"