test-check-pyflakes.t
32 lines
| 1.3 KiB
| text/troff
|
Tads3Lexer
/ tests / test-check-pyflakes.t
timeless
|
r29138 | #require test-repo pyflakes hg10 | ||
Matt Mackall
|
r21208 | |||
timeless
|
r29219 | $ . "$TESTDIR/helpers-testrepo.sh" | ||
Simon Heimberg
|
r19377 | |||
run pyflakes on all tracked files ending in .py or without a file ending | ||||
(skipping binary file random-seed) | ||||
Matt Mackall
|
r21208 | |||
Augie Fackler
|
r33367 | $ cat > test.py <<EOF | ||
> print(undefinedname) | ||||
> EOF | ||||
Matt Harbison
|
r47858 | $ "$PYTHON" -m pyflakes test.py 2>/dev/null | "$TESTDIR/filterpyflakes.py" | ||
r45486 | test.py:1:* undefined name 'undefinedname' (glob) | |||
Augie Fackler
|
r33367 | |||
Jun Wu
|
r33418 | $ cd "`dirname "$TESTDIR"`" | ||
Augie Fackler
|
r33367 | |||
Yuya Nishihara
|
r33199 | $ testrepohg locate 'set:**.py or grep("^#!.*python")' \ | ||
Adam Simpkins
|
r33116 | > -X hgext/fsmonitor/pywatchman \ | ||
Matt Harbison
|
r49854 | > -X contrib/python-zstandard \ | ||
r45484 | > -X mercurial/thirdparty \ | |||
Pulkit Goyal
|
r29584 | > 2>/dev/null \ | ||
Matt Harbison
|
r47858 | > | xargs "$PYTHON" -m pyflakes 2>/dev/null | "$TESTDIR/filterpyflakes.py" | ||
r45486 | contrib/perf.py:*:* undefined name 'xrange' (glob) (?) | |||
Matt Harbison
|
r49854 | mercurial/pycompat.py:*:* 'codecs' imported but unused (glob) | ||
mercurial/pycompat.py:*:* 'concurrent.futures' imported but unused (glob) | ||||
mercurial/pycompat.py:*:* 'http.client as httplib' imported but unused (glob) | ||||
mercurial/pycompat.py:*:* 'http.cookiejar as cookielib' imported but unused (glob) | ||||
mercurial/pycompat.py:*:* 'io' imported but unused (glob) | ||||
mercurial/pycompat.py:*:* 'queue' imported but unused (glob) | ||||
mercurial/pycompat.py:*:* 'socketserver' imported but unused (glob) | ||||
mercurial/pycompat.py:*:* 'xmlrpc.client as xmlrpclib' imported but unused (glob) | ||||
Matt Harbison
|
r49850 | mercurial/util.py:*:* 'pickle' imported but unused (glob) | ||
Matt Mackall
|
r22053 | |||