contrib/examples/fix.hgrc
author Kyle Lippincott <spectral@google.com>
Thu, 02 Jan 2020 11:04:18 -0800
branchstable
changeset 44247 c443b9ba6f63
parent 44103 2077ffede71f
child 44147 5e84a96d865b
permissions -rw-r--r--
py3: __repr__ needs to return str, not bytes Differential Revision: https://phab.mercurial-scm.org/D8089

[fix]
clang-format:command = clang-format --style file
clang-format:pattern = set:(**.c or **.cc or **.h) and not "include:contrib/clang-format-ignorelist"

rustfmt:command = rustfmt +nightly
rustfmt:pattern = set:**.rs

black:command = black --config=black.toml -
black:pattern = set:**.py - mercurial/thirdparty/** - "contrib/python-zstandard/**"

# Mercurial doesn't have any Go code, but if we did this is how we
# would configure `hg fix` for Go:
go:command = gofmt
go:pattern = set:**.go