tests/test-check-format.t
author Pierre-Yves David <pierre-yves.david@octobus.net>
Wed, 03 Apr 2024 16:00:37 +0200
branchstable
changeset 51559 ee132657647d
parent 46870 41d43d12c2c4
permissions -rw-r--r--
setup: display return code information about failed `hg` call This help to understand what is going wrong when things goes wrong.

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