Details
Details
- Reviewers
indygreg - Group Reviewers
hg-reviewers - Commits
- rHG8343070ed758: black: also ignore grey.py
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 (1 line) | |||
M | contrib/examples/fix.hgrc (2 lines) |
Commit | Parents | Author | Summary | Date |
---|---|---|---|---|
d780534b493e | dbef9270c3c9 | Augie Fackler | Oct 14 2019, 12:55 PM |
[tool.black] | [tool.black] | ||||
line-length = 80 | line-length = 80 | ||||
exclude = ''' | exclude = ''' | ||||
build/ | build/ | ||||
| wheelhouse/ | | wheelhouse/ | ||||
| dist/ | | dist/ | ||||
| packages/ | | packages/ | ||||
| \.hg/ | | \.hg/ | ||||
| \.mypy_cache/ | | \.mypy_cache/ | ||||
| \.venv/ | | \.venv/ | ||||
| mercurial/thirdparty/ | | mercurial/thirdparty/ | ||||
| hgext/fsmonitor/pywatchman/ | | hgext/fsmonitor/pywatchman/ | ||||
| contrib/python-zstandard/ | | contrib/python-zstandard/ | ||||
| contrib/grey.py | |||||
''' | ''' | ||||
skip-string-normalization = true | skip-string-normalization = true | ||||
quiet = 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 --config=black.toml - | # 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/** - contrib/grey.py" |