tests/test-check-pyflakes.t
author Sushil khanchi <sushilkhanchi97@gmail.com>
Wed, 13 Mar 2019 17:32:14 +0530
changeset 4439 2eafdca7ba4b
parent 4333 824fcba2cdb4
permissions -rw-r--r--
evolve: preserve compatibility for hg < 4.8 versions This patch make sure evolve don't break if user using a version of hg before this 7694b685bb10 patch on 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