contrib/examples/fix.hgrc
author Augie Fackler <augie@google.com>
Sun, 06 Oct 2019 06:55:49 -0700
changeset 43065 31c1a5376745
parent 42966 f5ad85dd5f7e
child 43083 7054fd370430
permissions -rw-r--r--
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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
42965
5dfb57af1148 contrib: add new examples area and start it out with a config for `hg fix`
Augie Fackler <augie@google.com>
parents:
diff changeset
     1
[fix]
5dfb57af1148 contrib: add new examples area and start it out with a config for `hg fix`
Augie Fackler <augie@google.com>
parents:
diff changeset
     2
clang-format:command = clang-format --style file -i
5dfb57af1148 contrib: add new examples area and start it out with a config for `hg fix`
Augie Fackler <augie@google.com>
parents:
diff changeset
     3
clang-format:pattern = (**.c or **.cc or **.h) and not "listfile:contrib/clang-format-ignorelist"
42966
f5ad85dd5f7e examples: add sample fix integration for `rustfmt`
Augie Fackler <augie@google.com>
parents: 42965
diff changeset
     4
f5ad85dd5f7e examples: add sample fix integration for `rustfmt`
Augie Fackler <augie@google.com>
parents: 42965
diff changeset
     5
rustfmt:command = rustfmt {rootpath}
f5ad85dd5f7e examples: add sample fix integration for `rustfmt`
Augie Fackler <augie@google.com>
parents: 42965
diff changeset
     6
rustfmt:pattern = set:**.rs
43065
31c1a5376745 examples: include a sample of how to use black with fix
Augie Fackler <augie@google.com>
parents: 42966
diff changeset
     7
31c1a5376745 examples: include a sample of how to use black with fix
Augie Fackler <augie@google.com>
parents: 42966
diff changeset
     8
# We use black, but currently with https://github.com/psf/black/pull/826 applied.
31c1a5376745 examples: include a sample of how to use black with fix
Augie Fackler <augie@google.com>
parents: 42966
diff changeset
     9
# black:command = black --skip-string-normalization
31c1a5376745 examples: include a sample of how to use black with fix
Augie Fackler <augie@google.com>
parents: 42966
diff changeset
    10
# black:pattern = set:**.py - hgext/fsmonitor/pywatchman/** - mercurial/thirdparty/** - "contrib/python-zstandard/**"