tests/test-check-format.t
author Pierre-Yves David <pierre-yves.david@octobus.net>
Tue, 29 Oct 2019 11:07:25 +0100
branchstable
changeset 43348 daa3b58906d5
parent 43347 abb95b6f79d3
child 43386 2247bf3cec76
permissions -rw-r--r--
formatting: drop `grey`, our custom black version Now that the official black has all we want, we can drop this.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
43347
abb95b6f79d3 formatting: using black to check for formatting
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 43237
diff changeset
     1
#require black
43095
fb41ea2ea076 formatting: introduce a `test-check-format-black.t` that enforce formatting
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
     2
fb41ea2ea076 formatting: introduce a `test-check-format-black.t` that enforce formatting
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
     3
  $ cd $RUNTESTDIR/..
43348
daa3b58906d5 formatting: drop `grey`, our custom black version
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 43347
diff changeset
     4
  $ black --config=black.toml --check --diff `hg files 'set:**.py - hgext/fsmonitor/pywatchman/** - mercurial/thirdparty/** - "contrib/python-zstandard/**"'`
43095
fb41ea2ea076 formatting: introduce a `test-check-format-black.t` that enforce formatting
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
     5