view tests/test-check-pyflakes.t @ 28425:02d7faaf455c

revset: stub to add extra data to baseset for better inspection We sometimes construct a baseset from filtering result. In that case, a baseset can provide more precise information how it is constructed.
author Yuya Nishihara <yuya@tcha.org>
date Tue, 16 Feb 2016 21:32:00 +0900
parents aef5b606d3ee
children a29f071751df
line wrap: on
line source

#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'