tests/test-check-pyflakes.t
author Oleg Afanasyev <olegaf@fb.com>
Fri, 08 Apr 2016 23:33:28 -0700
changeset 28862 39130afcce60
parent 27285 aef5b606d3ee
child 29138 a29f071751df
permissions -rw-r--r--
shelve: refactor directory name into constant Shelve directory name extracted into constant to avoid typos/duplication.

#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:61: undefined name 'undefinedname'