changeset 43065:31c1a5376745

examples: include a sample of how to use black with fix It's commented out for now since my patch hasn't landed, but we can uncomment it when that lands. Differential Revision: https://phab.mercurial-scm.org/D6974
author Augie Fackler <augie@google.com>
date Sun, 06 Oct 2019 06:55:49 -0700
parents 929678eb4cbd
children db33e4f25729
files contrib/examples/fix.hgrc
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/examples/fix.hgrc	Sun Oct 06 09:35:14 2019 -0400
+++ b/contrib/examples/fix.hgrc	Sun Oct 06 06:55:49 2019 -0700
@@ -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 - hgext/fsmonitor/pywatchman/** - mercurial/thirdparty/** - "contrib/python-zstandard/**"