tests/test-check-pyflakes.t
author Martin von Zweigbergk <martinvonz@google.com>
Thu, 24 Aug 2017 10:48:38 -0700
changeset 2857 0c286d054bcd
parent 2121 01ee3e155726
child 4333 824fcba2cdb4
permissions -rw-r--r--
warning: use 'divergent', not 'contentdivergent' on old Mercurial This was just an oversight in f6517779a7c4 (warning: rename warning message, 2017-08-24).

#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