D6993: black: add a pyproject.toml that contains our black settings

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Sun Oct 6 09:55:32 EDT 2019


Closed by commit rHG929678eb4cbd: black: add a pyproject.toml that contains our black settings (authored by durin42).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6993?vs=16866&id=16875

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D6993/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D6993

AFFECTED FILES
  pyproject.toml
  tests/test-check-code.t

CHANGE DETAILS

diff --git a/tests/test-check-code.t b/tests/test-check-code.t
--- a/tests/test-check-code.t
+++ b/tests/test-check-code.t
@@ -66,6 +66,7 @@
   hg
   hgeditor
   hgweb.cgi
+  pyproject.toml
   setup.py
 
 Prevent adding modules which could be shadowed by ancient .so/.dylib.
diff --git a/pyproject.toml b/pyproject.toml
new file mode 100644
--- /dev/null
+++ b/pyproject.toml
@@ -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/'



To: durin42, #hg-reviewers, indygreg
Cc: mjpieters, mercurial-devel


More information about the Mercurial-devel mailing list