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

login
register
mail settings
Submitter phabricator
Date Oct. 6, 2019, 1:55 p.m.
Message ID <453dde81e26780028db1ab828b3ac722@localhost.localdomain>
Download mbox | patch
Permalink /patch/42009/
State Not Applicable
Headers show

Comments

phabricator - Oct. 6, 2019, 1:55 p.m.
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




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

Patch

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/'