2016-05-05 12:26:09 +03:00
|
|
|
#require test-repo pyflakes hg10
|
2014-05-01 18:42:23 +04:00
|
|
|
|
2016-05-11 07:49:27 +03:00
|
|
|
$ . "$TESTDIR/helpers-testrepo.sh"
|
2012-04-03 21:06:35 +04:00
|
|
|
$ cd "`dirname "$TESTDIR"`"
|
2013-07-01 22:48:55 +04:00
|
|
|
|
|
|
|
run pyflakes on all tracked files ending in .py or without a file ending
|
|
|
|
(skipping binary file random-seed)
|
2014-05-01 18:42:23 +04:00
|
|
|
|
2016-12-22 22:07:59 +03:00
|
|
|
$ hg locate 'set:**.py or grep("^#!.*python")' -X hgext/fsmonitor/pywatchman \
|
2017-02-10 05:44:32 +03:00
|
|
|
> -X mercurial/pycompat.py -X contrib/python-zstandard \
|
2016-07-17 17:18:04 +03:00
|
|
|
> 2>/dev/null \
|
2013-07-01 22:48:55 +04:00
|
|
|
> | xargs pyflakes 2>/dev/null | "$TESTDIR/filterpyflakes.py"
|
2016-11-11 00:49:42 +03:00
|
|
|
tests/filterpyflakes.py:39: undefined name 'undefinedname'
|
2014-08-06 21:16:58 +04:00
|
|
|
|