tests/test-check-pyflakes.t
author Sushil khanchi <sushilkhanchi97@gmail.com>
Fri, 29 Mar 2019 11:19:24 +0100
changeset 4458 e8515ee7a7cc
parent 4333 824fcba2cdb4
permissions -rw-r--r--
evolve: compat patch to fix broken evolve obsdiscovery This patch preserve the compatibility for the changes upstreamed by e5ece0f46b40 in hg-committed.

#require test-repo pyflakes

Copied from Mercurial core (60ee2593a270)

  $ cd "`dirname "$TESTDIR"`"

run pyflakes on all tracked files ending in .py or without a file ending
(skipping binary file random-seed)

  $ hg locate -I 'set:(**.py or grep("^#!.*python")) - removed()' 2>/dev/null \
  > | xargs pyflakes 2>/dev/null