Changed default from all to changed (#12660)

* Default option now '--changed'
* to check all files, use: '--all' or 'tox -e lint'
This commit is contained in:
cdce8p 2018-03-01 18:02:19 +01:00 committed by GitHub
parent 78dd010a04
commit 17ba813a6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,7 +3,9 @@
cd "$(dirname "$0")/.."
if [ "$1" = "--changed" ]; then
if [ "$1" = "--all" ]; then
tox -e lint
else
export files="`git diff upstream/dev... --name-only | grep -e '\.py$'`"
echo "================================================="
echo "FILES CHANGED (git diff upstream/dev... --name-only)"
@ -22,6 +24,4 @@ if [ "$1" = "--changed" ]; then
echo "================"
pylint $files
echo
else
tox -e lint
fi