tests/test-check-format.t
author Kyle Lippincott <spectral@google.com>
Tue, 30 Mar 2021 15:54:36 -0700
changeset 46844 2fd5e0054dd9
parent 46787 decc3bd3f20d
child 46870 41d43d12c2c4
permissions -rw-r--r--
deb: avoid use of [[ in 'rules' file It's not supported by posix shell, and apparently my build system uses that. Differential Revision: https://phab.mercurial-scm.org/D10292
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
45208
f62bb5d07848 test: add `test-repo` requirement to `test-check-format` (issue6395)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 44232
diff changeset
     1
#require black test-repo
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/..
46787
decc3bd3f20d black: merge config into main pyproject.toml now that we have it
Augie Fackler <augie@google.com>
parents: 46520
diff changeset
     4
  $ black --check --diff `hg files 'set:(**.py + grep("^#!.*python")) - mercurial/thirdparty/**'`
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