D6974: examples: include a sample of how to use black with fix
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Sat Oct 5 14:06:30 UTC 2019
durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
It's commented out for now since my patch hasn't landed, but we can
uncomment it when that lands.
REPOSITORY
rHG Mercurial
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
+# black:pattern = set:**.py - mercurial/thirdparty/** - "contrib/python-zstandard/**"
To: durin42, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list