test-check-pyflakes.t
24 lines
| 730 B
| 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 | ||||
$ pyflakes test.py 2>/dev/null | "$TESTDIR/filterpyflakes.py" | ||||
test.py:1: undefined name 'undefinedname' | ||||
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 \ | ||
Augie Fackler
|
r30894 | > -X mercurial/pycompat.py -X contrib/python-zstandard \ | ||
Pulkit Goyal
|
r37145 | > -X mercurial/thirdparty/cbor \ | ||
Gregory Szorc
|
r37643 | > -X mercurial/thirdparty/concurrent \ | ||
Gregory Szorc
|
r37199 | > -X mercurial/thirdparty/zope \ | ||
Pulkit Goyal
|
r29584 | > 2>/dev/null \ | ||
Simon Heimberg
|
r19377 | > | xargs pyflakes 2>/dev/null | "$TESTDIR/filterpyflakes.py" | ||
Matt Mackall
|
r22053 | |||