tests/test-check-format.t
author Mathias De Mare <mathias.de_mare@nokia.com>
Wed, 17 Nov 2021 13:28:22 +0100
branchstable
changeset 48328 4713bcf78037
parent 46870 41d43d12c2c4
permissions -rw-r--r--
dockerrpm: always use current user and group Using uid 1000 and gid 1000 works by default in some cases, but 'id -u' and 'id -g' should work in all cases. Differential Revision: https://phab.mercurial-scm.org/D11767

#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/**'`