##// END OF EJS Templates
merge main and crew
merge main and crew

File last commit:

r19378:9de689d2 default
r20621:5beb49fd merge default
Show More
test-check-pyflakes.t
21 lines | 1.1 KiB | text/troff | Tads3Lexer
/ tests / test-check-pyflakes.t
timeless
tests: add pyflakes checking for unused imports
r14140 $ "$TESTDIR/hghave" pyflakes || exit 80
Thomas Arendsen Hein
tests: make tests work if directory contains special characters...
r16350 $ cd "`dirname "$TESTDIR"`"
Simon Heimberg
tests: run pyflakes on files from manifest which could be python files...
r19377
run pyflakes on all tracked files ending in .py or without a file ending
(skipping binary file random-seed)
$ hg manifest 2>/dev/null | egrep "\.py$|^[^.]*$" | grep -v /random_seed$ \
> | 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:*: 'hgext' 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)
contrib/win32/hgwebdir_wsgi.py:*: 'from isapi.install import *' used; unable to detect undefined names (glob)
timeless
test: add pyflakes checking for unable to detect undefined names
r14176 hgext/inotify/linux/__init__.py:*: 'from _inotify import *' used; unable to detect undefined names (glob)
timeless
tests: add pyflakes checking for unused imports
r14140