tests/test-check-pyflakes.t
author Martin von Zweigbergk <martinvonz@google.com>
Fri, 16 Mar 2018 10:22:27 -0700
changeset 3560 f61a23a84dac
parent 2121 01ee3e155726
child 4333 824fcba2cdb4
permissions -rw-r--r--
compat: add wrapper for obsolete.createmarkers() that accepts "operation" arg I want to start passing the operation argument, but hg < 4.3 does not support it, so we need a compat wrapper. For older hg, the operation is simply ignored.

#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