• 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
..
boilerplate Loading commit data...
hooks Loading commit data...
stable_backport_data Loading commit data...
check_xpath.py Loading commit data...
common.sh Loading commit data...
debpydep.py Loading commit data...
local_install.py Loading commit data...
local_install.sh Loading commit data...
local_run.py Loading commit data...
local_run.sh Loading commit data...
make_man.py Loading commit data...
make_man.sh Loading commit data...
modules_testing_grid.py Loading commit data...
pyflakes-strict.sh Loading commit data...
pyflakes.sh Loading commit data...
pyreverse.sh Loading commit data...
release.py Loading commit data...
release.sh Loading commit data...
run_tests.sh Loading commit data...
setup-virtualenv.sh Loading commit data...
stable_backport.py Loading commit data...
stale_pyc.py Loading commit data...
weboob_bash_completion Loading commit data...
weboob_lint.py Loading commit data...
weboob_lint.sh Loading commit data...