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

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Sat Oct 5 11:47:23 EDT 2019


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

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/**"



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


More information about the Mercurial-devel mailing list