• Jerome Berthier's avatar
    tools/pyflakes.sh: allow to override PYFILES from environment variable · c1d0e3c6
    Jerome Berthier authored
    Useful when using with a pre-push hook, it is useless to run flakes
    on the whole code base every time you push.
    
    Example of pre-push hook using this feature:
    
    ref=$(git rev-list --boundary HEAD...master | grep "^-" | cut -c2-)
    PYFILES="$(git diff ${ref} --name-only | grep -E "*.py$" | xargs)" $PWD/tools/pyflakes.sh
    if [ "$?" -ne "0" ]; then
        echo >&2 "Flakes error"
        exit 1
    fi
    c1d0e3c6
Name
Last commit
Last update
.ci Loading commit data...
.gitlab/issue_templates Loading commit data...
contrib Loading commit data...
desktop Loading commit data...
docs Loading commit data...
icons Loading commit data...
man Loading commit data...
modules Loading commit data...
tools Loading commit data...
weboob Loading commit data...
.editorconfig Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
.mailmap Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
COPYING Loading commit data...
COPYING.LESSER Loading commit data...
ChangeLog Loading commit data...
INSTALL Loading commit data...
MANIFEST.in Loading commit data...
MANIFEST.in.modules Loading commit data...
README.md Loading commit data...
build.mk Loading commit data...
setup.cfg Loading commit data...
setup.py Loading commit data...