black: add a pyproject.toml that contains our black settings
authorAugie Fackler <augie@google.com>
Sun, 06 Oct 2019 09:35:14 -0400
changeset 43064 929678eb4cbd
parent 43063 9bfd083bc6ee
child 43065 31c1a5376745
black: add a pyproject.toml that contains our black settings Differential Revision: https://phab.mercurial-scm.org/D6993
pyproject.toml
tests/test-check-code.t
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/pyproject.toml	Sun Oct 06 09:35:14 2019 -0400
@@ -0,0 +1,3 @@
+[tool.black]
+line-length = 80
+exclude = 'build/|wheelhouse/|dist/|packages/|\.hg/|\.mypy_cache/|\.venv/|mercurial/thirdparty/|hgext/fsmonitor/pywatchman/|contrib/python-zstandard/'
--- a/tests/test-check-code.t	Sat Oct 05 10:49:24 2019 -0400
+++ b/tests/test-check-code.t	Sun Oct 06 09:35:14 2019 -0400
@@ -66,6 +66,7 @@
   hg
   hgeditor
   hgweb.cgi
+  pyproject.toml
   setup.py
 
 Prevent adding modules which could be shadowed by ancient .so/.dylib.