tests/test-check-format.t
author Pulkit Goyal <7895pulkit@gmail.com>
Thu, 31 Dec 2020 14:28:00 +0530
changeset 46229 52abb1af2995
parent 45208 f62bb5d07848
child 46454 d4c8b4b90ecb
permissions -rw-r--r--
engine: prevent a function call for each store file Python function calls are not cheap. Instead of calling the function once for each file in store, we use a dedicated function which filters and yields the required files. Differential Revision: https://phab.mercurial-scm.org/D9673

#require black test-repo

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