tests/test-check-format.t
author Matt Harbison <matt_harbison@yahoo.com>
Tue, 20 Apr 2021 00:23:56 -0400
changeset 46982 d467bae86b2d
parent 46870 41d43d12c2c4
permissions -rw-r--r--
mail: use a context manager when writing to mbox Differential Revision: https://phab.mercurial-scm.org/D10484

#require black test-repo

Black needs the real USERPROFILE in order to run on Windows
#if msys
  $ USERPROFILE="$REALUSERPROFILE"
  $ export USERPROFILE
#endif

  $ cd $RUNTESTDIR/..
  $ black --check --diff `hg files 'set:(**.py + grep("^#!.*python")) - mercurial/thirdparty/**'`