tests/test-check-pyflakes.t
author Matt Harbison <matt_harbison@yahoo.com>
Thu, 16 Mar 2017 21:16:57 -0400
changeset 2121 01ee3e155726
parent 2107 42f3329aa144
child 4333 824fcba2cdb4
permissions -rw-r--r--
checks: correct the shebang line filtering for python files As it is, the only related file is docs/test2rst.py, which was covered by **.py. Not sure if it matters, but most patterns in core tests are for "#!.*?python". (Though there are a couple "#!.*python" tests.)

#require test-repo pyflakes

Copied from Mercurial core (60ee2593a270)

  $ cd "`dirname "$TESTDIR"`"

run pyflakes on all tracked files ending in .py or without a file ending
(skipping binary file random-seed)

  $ hg locate 'set:(**.py or grep("^#!.*python")) - removed()' 2>/dev/null \
  > | xargs pyflakes 2>/dev/null