tests/test-check-pyflakes.t
author Pierre-Yves David <pierre-yves.david@octobus.net>
Sun, 02 Jul 2017 15:02:11 +0200
changeset 2693 f4b0351fa813
parent 2121 01ee3e155726
child 4333 824fcba2cdb4
permissions -rw-r--r--
evolve: adapt to function migrate to obsutil Mercurial 4.3 has a new module "obsutil" and multiple functions moved there. We handle the move for the one we care about.

#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 'set:(**.py or grep("^#!.*python")) - removed()' 2>/dev/null \
  > | xargs pyflakes 2>/dev/null