test-check-pyflakes.t
28 lines
| 983 B
| text/troff
|
Tads3Lexer
/ tests / test-check-pyflakes.t
|
r29138 | #require test-repo pyflakes hg10 | ||
|
r21208 | |||
|
r29219 | $ . "$TESTDIR/helpers-testrepo.sh" | ||
|
r19377 | |||
run pyflakes on all tracked files ending in .py or without a file ending | ||||
(skipping binary file random-seed) | ||||
|
r21208 | |||
|
r33367 | $ cat > test.py <<EOF | ||
> print(undefinedname) | ||||
> EOF | ||||
$ pyflakes test.py 2>/dev/null | "$TESTDIR/filterpyflakes.py" | ||||
test.py:1: undefined name 'undefinedname' | ||||
|
r33418 | $ cd "`dirname "$TESTDIR"`" | ||
|
r33367 | |||
|
r33199 | $ testrepohg locate 'set:**.py or grep("^#!.*python")' \ | ||
|
r33116 | > -X hgext/fsmonitor/pywatchman \ | ||
|
r30894 | > -X mercurial/pycompat.py -X contrib/python-zstandard \ | ||
|
r37145 | > -X mercurial/thirdparty/cbor \ | ||
|
r37643 | > -X mercurial/thirdparty/concurrent \ | ||
|
r37199 | > -X mercurial/thirdparty/zope \ | ||
|
r29584 | > 2>/dev/null \ | ||
|
r44951 | > | xargs $PYTHON -m pyflakes 2>/dev/null | "$TESTDIR/filterpyflakes.py" | ||
|
r43338 | contrib/perf.py:*: undefined name 'xrange' (glob) (?) | ||
|
r43339 | mercurial/hgweb/server.py:*: undefined name 'reload' (glob) (?) | ||
|
r43379 | mercurial/util.py:*: undefined name 'file' (glob) (?) | ||
|
r43802 | mercurial/encoding.py:*: undefined name 'localstr' (glob) (?) | ||
|
r22053 | |||