Show More
@@ -1,46 +1,47 b'' | |||
|
1 | 1 | #require test-repo |
|
2 | 2 | |
|
3 | 3 | $ . "$TESTDIR/helpers-testrepo.sh" |
|
4 | 4 | $ cd "$TESTDIR"/.. |
|
5 | 5 | |
|
6 | 6 | $ testrepohg files 'set:(**.py)' \ |
|
7 | 7 | > -X hgdemandimport/demandimportpy2.py \ |
|
8 | > -X mercurial/thirdparty/cbor \ | |
|
8 | 9 | > | sed 's|\\|/|g' | xargs $PYTHON contrib/check-py3-compat.py |
|
9 | 10 | contrib/python-zstandard/setup.py not using absolute_import |
|
10 | 11 | contrib/python-zstandard/setup_zstd.py not using absolute_import |
|
11 | 12 | contrib/python-zstandard/tests/common.py not using absolute_import |
|
12 | 13 | contrib/python-zstandard/tests/test_buffer_util.py not using absolute_import |
|
13 | 14 | contrib/python-zstandard/tests/test_compressor.py not using absolute_import |
|
14 | 15 | contrib/python-zstandard/tests/test_compressor_fuzzing.py not using absolute_import |
|
15 | 16 | contrib/python-zstandard/tests/test_data_structures.py not using absolute_import |
|
16 | 17 | contrib/python-zstandard/tests/test_data_structures_fuzzing.py not using absolute_import |
|
17 | 18 | contrib/python-zstandard/tests/test_decompressor.py not using absolute_import |
|
18 | 19 | contrib/python-zstandard/tests/test_decompressor_fuzzing.py not using absolute_import |
|
19 | 20 | contrib/python-zstandard/tests/test_estimate_sizes.py not using absolute_import |
|
20 | 21 | contrib/python-zstandard/tests/test_module_attributes.py not using absolute_import |
|
21 | 22 | contrib/python-zstandard/tests/test_train_dictionary.py not using absolute_import |
|
22 | 23 | setup.py not using absolute_import |
|
23 | 24 | |
|
24 | 25 | #if py3exe |
|
25 | 26 | $ testrepohg files 'set:(**.py) - grep(pygments)' \ |
|
26 | 27 | > -X hgdemandimport/demandimportpy2.py \ |
|
27 | 28 | > -X hgext/fsmonitor/pywatchman \ |
|
28 | 29 | > | sed 's|\\|/|g' | xargs $PYTHON3 contrib/check-py3-compat.py \ |
|
29 | 30 | > | sed 's/[0-9][0-9]*)$/*)/' |
|
30 | 31 | hgext/convert/transport.py: error importing: <*Error> No module named 'svn.client' (error at transport.py:*) (glob) |
|
31 | 32 | mercurial/cffi/bdiff.py: error importing: <ImportError> cannot import name '_bdiff' (error at bdiff.py:*) |
|
32 | 33 | mercurial/cffi/bdiffbuild.py: error importing: <ImportError> No module named 'cffi' (error at bdiffbuild.py:*) |
|
33 | 34 | mercurial/cffi/mpatch.py: error importing: <ImportError> cannot import name '_mpatch' (error at mpatch.py:*) |
|
34 | 35 | mercurial/cffi/mpatchbuild.py: error importing: <ImportError> No module named 'cffi' (error at mpatchbuild.py:*) |
|
35 | 36 | mercurial/cffi/osutilbuild.py: error importing: <ImportError> No module named 'cffi' (error at osutilbuild.py:*) |
|
36 | 37 | mercurial/scmwindows.py: error importing: <*Error> No module named 'msvcrt' (error at win32.py:*) (glob) |
|
37 | 38 | mercurial/win32.py: error importing: <*Error> No module named 'msvcrt' (error at win32.py:*) (glob) |
|
38 | 39 | mercurial/windows.py: error importing: <*Error> No module named 'msvcrt' (error at windows.py:*) (glob) |
|
39 | 40 | |
|
40 | 41 | #endif |
|
41 | 42 | |
|
42 | 43 | #if py3exe py3pygments |
|
43 | 44 | $ testrepohg files 'set:(**.py) and grep(pygments)' | sed 's|\\|/|g' \ |
|
44 | 45 | > | xargs $PYTHON3 contrib/check-py3-compat.py \ |
|
45 | 46 | > | sed 's/[0-9][0-9]*)$/*)/' |
|
46 | 47 | #endif |
@@ -1,21 +1,22 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 | > -X mercurial/thirdparty/cbor \ | |
|
19 | 20 | > 2>/dev/null \ |
|
20 | 21 | > | xargs pyflakes 2>/dev/null | "$TESTDIR/filterpyflakes.py" |
|
21 | 22 |
General Comments 0
You need to be logged in to leave comments.
Login now