Details
Details
- Reviewers
indygreg - Group Reviewers
hg-reviewers - Commits
- rHG15c05732d177: black: move remaining config knobs into toml file
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
indygreg |
hg-reviewers |
Lint Skipped |
Unit Tests Skipped |
Path | Packages | |||
---|---|---|---|---|
M | black.toml (2 lines) | |||
M | contrib/examples/fix.hgrc (2 lines) |
Commit | Parents | Author | Summary | Date |
---|---|---|---|---|
d0524c5678cc | 37b6bdb8b5b2 | Augie Fackler | Oct 14 2019, 12:52 PM |
[tool.black] | [tool.black] | ||||
line-length = 80 | line-length = 80 | ||||
exclude = 'build/|wheelhouse/|dist/|packages/|\.hg/|\.mypy_cache/|\.venv/|mercurial/thirdparty/|hgext/fsmonitor/pywatchman/|contrib/python-zstandard/' | exclude = 'build/|wheelhouse/|dist/|packages/|\.hg/|\.mypy_cache/|\.venv/|mercurial/thirdparty/|hgext/fsmonitor/pywatchman/|contrib/python-zstandard/' | ||||
skip-string-normalization = true | |||||
quiet = true |
[fix] | [fix] | ||||
clang-format:command = clang-format --style file -i | clang-format:command = clang-format --style file -i | ||||
clang-format:pattern = (**.c or **.cc or **.h) and not "listfile:contrib/clang-format-ignorelist" | clang-format:pattern = (**.c or **.cc or **.h) and not "listfile:contrib/clang-format-ignorelist" | ||||
rustfmt:command = rustfmt {rootpath} | rustfmt:command = rustfmt {rootpath} | ||||
rustfmt:pattern = set:**.rs | rustfmt:pattern = set:**.rs | ||||
# We use black, but currently with | # We use black, but currently with | ||||
# https://github.com/psf/black/pull/826 applied. For now | # https://github.com/psf/black/pull/826 applied. For now | ||||
# contrib/grey.py is our fork of black. You need to pip install | # contrib/grey.py is our fork of black. You need to pip install | ||||
# git+https://github.com/python/black/@d9e71a75ccfefa3d9156a64c03313a0d4ad981e5 | # git+https://github.com/python/black/@d9e71a75ccfefa3d9156a64c03313a0d4ad981e5 | ||||
# to have the dependencies for grey. | # to have the dependencies for grey. | ||||
# | # | ||||
# black:command = python3.7 contrib/grey.py --quiet --config=black.toml --skip-string-normalization - | # black:command = python3.7 contrib/grey.py --config=black.toml - | ||||
# black:pattern = set:**.py - hgext/fsmonitor/pywatchman/** - mercurial/thirdparty/** - "contrib/python-zstandard/**" | # black:pattern = set:**.py - hgext/fsmonitor/pywatchman/** - mercurial/thirdparty/** - "contrib/python-zstandard/**" |