3 # Changes here might also be appropriate for ./pytest
7 with_pylint=$(cat config/config.var/with-pylint)
12 echo "./pylint: doing nothing given ./configure --with-pylint=no" 1>&2
17 dev/have-pylint || rc=$?
21 echo "./pylint: doing nothing (pylint not found)" 1>&2
28 printf "./pylint: unexpected config/config.var/with-pylint value %q\n" \
34 script_home="$(cd "$(dirname "$0")" && pwd -P)"
35 testlibdir="$script_home/test/lib"
37 export PYTHONPATH="$testlibdir${PYTHONPATH:+:$PYTHONPATH}"
39 if test "$#" -eq 0; then
41 dev/bup-python -m pylint lib
42 # unused-wildcard-import: we always "import * from wvpytest"
43 dev/bup-python -m pylint -d unused-wildcard-import test/lib test/int
46 exec dev/bup-python -m pylint "$@"