##// END OF EJS Templates
ci-fix: backed out changeset d4c8b4b90ecb...
marmoute -
r47184:5be88620 default
parent child Browse files
Show More
@@ -0,0 +1,14 b''
1 [tool.black]
2 line-length = 80
3 exclude = '''
4 build/
5 | wheelhouse/
6 | dist/
7 | packages/
8 | \.hg/
9 | \.mypy_cache/
10 | \.venv/
11 | mercurial/thirdparty/
12 '''
13 skip-string-normalization = true
14 quiet = true
@@ -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 --config=black.toml -
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,18 +1,3 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,6 +66,7 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
69 hg
70 hg
70 hgeditor
71 hgeditor
71 hgweb.cgi
72 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 --check --diff `hg files 'set:(**.py + grep("^#!.*python")) - mercurial/thirdparty/**'`
4 $ black --config=black.toml --check --diff `hg files 'set:(**.py + grep("^#!.*python")) - mercurial/thirdparty/**'`
5
5
General Comments 0
You need to be logged in to leave comments. Login now