##// END OF EJS Templates
black: merge config into main pyproject.toml now that we have it...
Augie Fackler -
r47532:decc3bd3 default
parent child Browse files
Show More
@@ -5,7 +5,7 b' clang-format:pattern = set:(**.c or **.c'
5 5 rustfmt:command = rustfmt +nightly
6 6 rustfmt:pattern = set:"**.rs" - "mercurial/thirdparty/**"
7 7
8 black:command = black --config=black.toml -
8 black:command = black
9 9 black:pattern = set:**.py - mercurial/thirdparty/**
10 10
11 11 # Mercurial doesn't have any Go code, but if we did this is how we
@@ -1,3 +1,18 b''
1 1 [build-system]
2 2 requires = ["setuptools", "wheel"]
3 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 66 COPYING
67 67 Makefile
68 68 README.rst
69 black.toml
70 69 hg
71 70 hgeditor
72 71 hgweb.cgi
@@ -1,5 +1,5 b''
1 1 #require black test-repo
2 2
3 3 $ cd $RUNTESTDIR/..
4 $ black --config=black.toml --check --diff `hg files 'set:(**.py + grep("^#!.*python")) - mercurial/thirdparty/**'`
4 $ black --check --diff `hg files 'set:(**.py + grep("^#!.*python")) - mercurial/thirdparty/**'`
5 5
1 NO CONTENT: file was removed
General Comments 0
You need to be logged in to leave comments. Login now