contrib/examples/fix.hgrc
author Yuya Nishihara <yuya@tcha.org>
Wed, 02 Oct 2019 07:35:22 +0900
changeset 43096 813aa8cc55d4
parent 43093 9002f4a3dde6
child 43222 8f89899a5446
permissions -rw-r--r--
patchbomb: use procutil.shellquote() instead of shlex to escape email address This basically backs out 2cc453284d5c, and inserts procutil.shellquote() instead. I don't care about Windows compatibility here, but shlex.quote() can't handle byte strings on Python 3.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
42967
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"
42968
f5ad85dd5f7e examples: add sample fix integration for `rustfmt`
Augie Fackler <augie@google.com>
parents: 42967
diff changeset
     4
f5ad85dd5f7e examples: add sample fix integration for `rustfmt`
Augie Fackler <augie@google.com>
parents: 42967
diff changeset
     5
rustfmt:command = rustfmt {rootpath}
f5ad85dd5f7e examples: add sample fix integration for `rustfmt`
Augie Fackler <augie@google.com>
parents: 42967
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: 42968
diff changeset
     7
43083
7054fd370430 contrib: add a fork of black (as "grey") that includes my changes
Augie Fackler <augie@google.com>
parents: 43065
diff changeset
     8
# We use black, but currently with
7054fd370430 contrib: add a fork of black (as "grey") that includes my changes
Augie Fackler <augie@google.com>
parents: 43065
diff changeset
     9
# https://github.com/psf/black/pull/826 applied. For now
7054fd370430 contrib: add a fork of black (as "grey") that includes my changes
Augie Fackler <augie@google.com>
parents: 43065
diff changeset
    10
# contrib/grey.py is our fork of black. You need to pip install
7054fd370430 contrib: add a fork of black (as "grey") that includes my changes
Augie Fackler <augie@google.com>
parents: 43065
diff changeset
    11
# git+https://github.com/python/black/@d9e71a75ccfefa3d9156a64c03313a0d4ad981e5
7054fd370430 contrib: add a fork of black (as "grey") that includes my changes
Augie Fackler <augie@google.com>
parents: 43065
diff changeset
    12
# to have the dependencies for grey.
7054fd370430 contrib: add a fork of black (as "grey") that includes my changes
Augie Fackler <augie@google.com>
parents: 43065
diff changeset
    13
#
43093
9002f4a3dde6 formatting: make black --quiet in the example `hg fix` config
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 43092
diff changeset
    14
# black:command = python3.7 contrib/grey.py --quiet --skip-string-normalization -
43065
31c1a5376745 examples: include a sample of how to use black with fix
Augie Fackler <augie@google.com>
parents: 42968
diff changeset
    15
# black:pattern = set:**.py - hgext/fsmonitor/pywatchman/** - mercurial/thirdparty/** - "contrib/python-zstandard/**"