tests/test-check-pyflakes.t
author Siddharth Agarwal <sid0@fb.com>
Tue, 18 Nov 2014 21:43:38 -0800
changeset 23431 10223d2278f4
parent 22198 77142de48ae4
child 27285 aef5b606d3ee
permissions -rw-r--r--
patch: rename diffopts to diffallopts This is meant to be used when all features are explicitly requested. diffopts is kept as an alias for now -- it will go away soon.

#require test-repo pyflakes

  $ 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 | "$TESTDIR/filterpyflakes.py"
  tests/filterpyflakes.py:58: undefined name 'undefinedname'