view tests/test-check-pyflakes.t @ 6456:a80ed2e4745b stable

makefile: get setup tools out of the equation Without these two flags, the new install does not overwrite the older one. Impressive to see that in 2023 this is still broken. For the record, `setup.py --help install` says: --old-and-unmanageable Try not to use this! --single-version-externally-managed used by system package builders to create 'flat' eggs
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 14 Mar 2023 18:07:41 +0100
parents 0e397aeee55b
children 136dcb4ad4f8
line wrap: on
line source

#require test-repo pyflakes

Copied from Mercurial core (60ee2593a270)

  $ cd "`dirname "$TESTDIR"`"

run pyflakes on all tracked files ending in .py or with a python shebang

  $ hg files -0 'set:(**.py or grep("^#!.*python")) - removed()' \
  > -X hgext3rd/evolve/thirdparty \
  > 2>/dev/null \
  > | xargs -0 "$PYTHON" -m pyflakes 2>/dev/null