changeset 43386:2247bf3cec76 stable

fsmonitor: remove pywatchman from exclusion rule The recently vendored pywatchman code base is now formatted with black. We can now remove pywatchman from our black exclusion rule. Differential Revision: https://phab.mercurial-scm.org/D7202
author Gregory Szorc <gregory.szorc@gmail.com>
date Sat, 02 Nov 2019 12:51:28 -0700
parents 6469c23a40a2
children 9eed959cd8ae
files black.toml contrib/examples/fix.hgrc tests/test-check-format.t
diffstat 3 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/black.toml	Sat Nov 02 12:42:23 2019 -0700
+++ b/black.toml	Sat Nov 02 12:51:28 2019 -0700
@@ -9,7 +9,6 @@
 | \.mypy_cache/
 | \.venv/
 | mercurial/thirdparty/
-| hgext/fsmonitor/pywatchman/
 | contrib/python-zstandard/
 '''
 skip-string-normalization = true
--- a/contrib/examples/fix.hgrc	Sat Nov 02 12:42:23 2019 -0700
+++ b/contrib/examples/fix.hgrc	Sat Nov 02 12:51:28 2019 -0700
@@ -6,4 +6,4 @@
 rustfmt:pattern = set:**.rs
 
 black:command = black --config=black.toml -
-black:pattern = set:**.py - hgext/fsmonitor/pywatchman/** - mercurial/thirdparty/** - "contrib/python-zstandard/**"
+black:pattern = set:**.py - mercurial/thirdparty/** - "contrib/python-zstandard/**"
--- a/tests/test-check-format.t	Sat Nov 02 12:42:23 2019 -0700
+++ b/tests/test-check-format.t	Sat Nov 02 12:51:28 2019 -0700
@@ -1,5 +1,5 @@
 #require black
 
   $ cd $RUNTESTDIR/..
-  $ black --config=black.toml --check --diff `hg files 'set:**.py - hgext/fsmonitor/pywatchman/** - mercurial/thirdparty/** - "contrib/python-zstandard/**"'`
+  $ black --config=black.toml --check --diff `hg files 'set:**.py - mercurial/thirdparty/** - "contrib/python-zstandard/**"'`