| 1 |
[fix] |
| 2 |
clang-format:command = clang-format --style file |
| 3 |
clang-format:pattern = set:(**.c or **.cc or **.h) and not "include:contrib/clang-format-ignorelist" |
| 4 |
|
| 5 |
rustfmt:command = rustfmt +nightly |
| 6 |
rustfmt:pattern = set:"**.rs" - "mercurial/thirdparty/**" |
| 7 |
|
| 8 |
black:command = black --config=pyproject.toml - |
| 9 |
black:pattern = set:**.py - mercurial/thirdparty/** |
| 10 |
|
| 11 |
# Mercurial doesn't have any Go code, but if we did this is how we |
| 12 |
# would configure `hg fix` for Go: |
| 13 |
go:command = gofmt |
| 14 |
go:pattern = set:**.go |