2014-05-01 18:42:23 +04:00
|
|
|
#if test-repo pyflakes
|
|
|
|
|
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
|
|
|
|
2014-05-02 09:23:58 +04:00
|
|
|
$ hg locate 'set:**.py or grep("^!#.*python")' 2>/dev/null \
|
2013-07-01 22:48:55 +04:00
|
|
|
> | xargs pyflakes 2>/dev/null | "$TESTDIR/filterpyflakes.py"
|
|
|
|
contrib/win32/hgwebdir_wsgi.py:*: 'win32traceutil' imported but unused (glob)
|
|
|
|
setup.py:*: 'sha' imported but unused (glob)
|
|
|
|
setup.py:*: 'zlib' imported but unused (glob)
|
|
|
|
setup.py:*: 'bz2' imported but unused (glob)
|
|
|
|
setup.py:*: 'py2exe' imported but unused (glob)
|
|
|
|
tests/hghave.py:*: '_lsprof' imported but unused (glob)
|
|
|
|
tests/hghave.py:*: 'publish_cmdline' imported but unused (glob)
|
|
|
|
tests/hghave.py:*: 'pygments' imported but unused (glob)
|
|
|
|
tests/hghave.py:*: 'ssl' imported but unused (glob)
|
2014-03-04 19:56:59 +04:00
|
|
|
contrib/win32/hgwebdir_wsgi.py:93: 'from isapi.install import *' used; unable to detect undefined names (glob)
|
2014-05-14 04:22:40 +04:00
|
|
|
tests/filterpyflakes.py:58: undefined name 'undefinedname'
|
2011-05-01 17:22:30 +04:00
|
|
|
|
2014-05-01 18:42:23 +04:00
|
|
|
#endif
|