view tests/test-check-format.t @ 45719:c10c87c8fe79

grep: extract public function to register file to be skipped The main grep loop will be extracted to a searcher method, but this skipping condition depends on the result of display() function.
author Yuya Nishihara <yuya@tcha.org>
date Wed, 09 Sep 2020 17:04:44 +0900
parents f62bb5d07848
children d4c8b4b90ecb
line wrap: on
line source

#require black test-repo

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