view contrib/examples/fix.hgrc @ 43093:9002f4a3dde6

formatting: make black --quiet in the example `hg fix` config I do like cake, but I cannot have so many of them.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Mon, 07 Oct 2019 11:51:34 -0400
parents 0b75457d1133
children 8f89899a5446
line wrap: on
line source

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

rustfmt:command = rustfmt {rootpath}
rustfmt:pattern = set:**.rs

# We use black, but currently with
# https://github.com/psf/black/pull/826 applied. For now
# contrib/grey.py is our fork of black. You need to pip install
# git+https://github.com/python/black/@d9e71a75ccfefa3d9156a64c03313a0d4ad981e5
# to have the dependencies for grey.
#
# black:command = python3.7 contrib/grey.py --quiet --skip-string-normalization -
# black:pattern = set:**.py - hgext/fsmonitor/pywatchman/** - mercurial/thirdparty/** - "contrib/python-zstandard/**"