tests/test-check-pyflakes.t
changeset 30894 5b60464efbde
parent 30655 f35397fe0c04
child 32277 80e3002cd29e
equal deleted inserted replaced
30893:a0e3d808690d 30894:5b60464efbde
     5 
     5 
     6 run pyflakes on all tracked files ending in .py or without a file ending
     6 run pyflakes on all tracked files ending in .py or without a file ending
     7 (skipping binary file random-seed)
     7 (skipping binary file random-seed)
     8 
     8 
     9   $ hg locate 'set:**.py or grep("^#!.*python")' -X hgext/fsmonitor/pywatchman \
     9   $ hg locate 'set:**.py or grep("^#!.*python")' -X hgext/fsmonitor/pywatchman \
    10   > -X mercurial/pycompat.py \
    10   > -X mercurial/pycompat.py -X contrib/python-zstandard \
    11   > 2>/dev/null \
    11   > 2>/dev/null \
    12   > | xargs pyflakes 2>/dev/null | "$TESTDIR/filterpyflakes.py"
    12   > | xargs pyflakes 2>/dev/null | "$TESTDIR/filterpyflakes.py"
    13   contrib/python-zstandard/tests/test_data_structures.py:107: local variable 'size' is assigned to but never used
       
    14   tests/filterpyflakes.py:39: undefined name 'undefinedname'
    13   tests/filterpyflakes.py:39: undefined name 'undefinedname'
    15   
    14