Show More
@@ -1,24 +1,25 b'' | |||
|
1 | 1 | #require test-repo pyflakes hg10 |
|
2 | 2 | |
|
3 | 3 | $ . "$TESTDIR/helpers-testrepo.sh" |
|
4 | 4 | |
|
5 | 5 | run pyflakes on all tracked files ending in .py or without a file ending |
|
6 | 6 | (skipping binary file random-seed) |
|
7 | 7 | |
|
8 | 8 | $ cat > test.py <<EOF |
|
9 | 9 | > print(undefinedname) |
|
10 | 10 | > EOF |
|
11 | 11 | $ pyflakes test.py 2>/dev/null | "$TESTDIR/filterpyflakes.py" |
|
12 | 12 | test.py:1: undefined name 'undefinedname' |
|
13 | 13 | |
|
14 | 14 | $ cd "`dirname "$TESTDIR"`" |
|
15 | 15 | |
|
16 | 16 | $ testrepohg locate 'set:**.py or grep("^#!.*python")' \ |
|
17 | 17 | > -X hgext/fsmonitor/pywatchman \ |
|
18 | 18 | > -X mercurial/pycompat.py -X contrib/python-zstandard \ |
|
19 | 19 | > -X mercurial/thirdparty/cbor \ |
|
20 | 20 | > -X mercurial/thirdparty/concurrent \ |
|
21 | 21 | > -X mercurial/thirdparty/zope \ |
|
22 | 22 | > 2>/dev/null \ |
|
23 | 23 | > | xargs pyflakes 2>/dev/null | "$TESTDIR/filterpyflakes.py" |
|
24 | contrib/perf.py:*: undefined name 'xrange' (glob) (?) | |
|
24 | 25 |
General Comments 0
You need to be logged in to leave comments.
Login now