tests/test-check-pyflakes.t
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
Thu, 11 Aug 2016 22:52:49 +0200
changeset 1972 04ce84b7b9d1
parent 1930 b82769fd703b
child 2002 053190199959
permissions -rw-r--r--
testedwith: update to 3.9 This is might still 3.7 compatible but I'm no longer running the test and I would says the user base is small enough to not care.

#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")' 2>/dev/null \
  > | xargs pyflakes 2>/dev/null