black: add a pyproject.toml that contains our black settings
Differential Revision: https://phab.mercurial-scm.org/D6993
author |
Augie Fackler <augie@google.com> |
date |
Sun, 06 Oct 2019 09:35:14 -0400 |
parents |
9bfd083bc6ee |
children |
31c1a5376745 |
files |
pyproject.toml tests/test-check-code.t |
diffstat |
2 files changed, 4 insertions(+), 0 deletions(-)
[+]
|
line diff
--- /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.