| 1 |
# This file should hold the correct configuration to format the Mercurial code base |
| 2 |
|
| 3 |
[extensions] |
| 4 |
fix= |
| 5 |
|
| 6 |
[fix] |
| 7 |
clang-format:command = clang-format --style file |
| 8 |
clang-format:pattern = set:(**.c or **.cc or **.h) and not "include:contrib/clang-format-ignorelist" |
| 9 |
|
| 10 |
rustfmt:command = $(rustup which --toolchain nightly-2024-07-16 rustfmt) |
| 11 |
rustfmt:pattern = set:"**.rs" - "mercurial/thirdparty/**" |
| 12 |
|
| 13 |
black:command = black --config=pyproject.toml - |
| 14 |
black:pattern = set:**.py - mercurial/thirdparty/** |