Show More
@@ -5,7 +5,7 b' clang-format:pattern = set:(**.c or **.c' | |||||
5 | rustfmt:command = rustfmt +nightly |
|
5 | rustfmt:command = rustfmt +nightly | |
6 | rustfmt:pattern = set:"**.rs" - "mercurial/thirdparty/**" |
|
6 | rustfmt:pattern = set:"**.rs" - "mercurial/thirdparty/**" | |
7 |
|
7 | |||
8 |
black:command = black |
|
8 | black:command = black | |
9 | black:pattern = set:**.py - mercurial/thirdparty/** |
|
9 | black:pattern = set:**.py - mercurial/thirdparty/** | |
10 |
|
10 | |||
11 | # Mercurial doesn't have any Go code, but if we did this is how we |
|
11 | # Mercurial doesn't have any Go code, but if we did this is how we |
@@ -1,3 +1,18 b'' | |||||
1 | [build-system] |
|
1 | [build-system] | |
2 | requires = ["setuptools", "wheel"] |
|
2 | requires = ["setuptools", "wheel"] | |
3 | build-backend = "setuptools.build_meta" |
|
3 | build-backend = "setuptools.build_meta" | |
|
4 | ||||
|
5 | [tool.black] | |||
|
6 | line-length = 80 | |||
|
7 | exclude = ''' | |||
|
8 | build/ | |||
|
9 | | wheelhouse/ | |||
|
10 | | dist/ | |||
|
11 | | packages/ | |||
|
12 | | \.hg/ | |||
|
13 | | \.mypy_cache/ | |||
|
14 | | \.venv/ | |||
|
15 | | mercurial/thirdparty/ | |||
|
16 | ''' | |||
|
17 | skip-string-normalization = true | |||
|
18 | quiet = true |
@@ -66,7 +66,6 b' Prevent adding new files in the root dir' | |||||
66 | COPYING |
|
66 | COPYING | |
67 | Makefile |
|
67 | Makefile | |
68 | README.rst |
|
68 | README.rst | |
69 | black.toml |
|
|||
70 | hg |
|
69 | hg | |
71 | hgeditor |
|
70 | hgeditor | |
72 | hgweb.cgi |
|
71 | hgweb.cgi |
@@ -1,5 +1,5 b'' | |||||
1 | #require black test-repo |
|
1 | #require black test-repo | |
2 |
|
2 | |||
3 | $ cd $RUNTESTDIR/.. |
|
3 | $ cd $RUNTESTDIR/.. | |
4 |
$ black |
|
4 | $ black --check --diff `hg files 'set:(**.py + grep("^#!.*python")) - mercurial/thirdparty/**'` | |
5 |
|
5 |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
General Comments 0
You need to be logged in to leave comments.
Login now