23 lines
656 B
Bash
Executable file
23 lines
656 B
Bash
Executable file
#!/bin/sh
|
|
#
|
|
# NOTE: all testing is now driven through tox. The tox command below
|
|
# performs roughly what this test did in the past.
|
|
|
|
if [ "$1" = "--changed" ]; then
|
|
export files="`git diff upstream/dev --name-only | grep -e '\.py$'`"
|
|
echo "================================================="
|
|
echo "FILES CHANGED (git diff upstream/dev --name-only)"
|
|
echo "================================================="
|
|
echo $files
|
|
echo "================"
|
|
echo "LINT with flake8"
|
|
echo "================"
|
|
flake8 --doctests $files
|
|
echo "================"
|
|
echo "LINT with pylint"
|
|
echo "================"
|
|
pylint $files
|
|
echo
|
|
else
|
|
tox -e lint
|
|
fi
|