Script/lint, Lazytox: Fix issue to ignore delete files (#13051)

* Fix issue to ignore delete files

* Updated lazytox
This commit is contained in:
cdce8p
2018-03-10 18:12:23 +01:00
committed by Paulus Schoutsen
parent 86baed4e52
commit 7ea7fc8d38
2 changed files with 5 additions and 3 deletions

View File

@@ -3,9 +3,9 @@
cd "$(dirname "$0")/.."
export files="`git diff upstream/dev... --name-only | grep -e '\.py$'`"
export files="`git diff upstream/dev... --diff-filter=d --name-only | grep -e '\.py$'`"
echo "================================================="
echo "FILES CHANGED (git diff upstream/dev... --name-only)"
echo "FILES CHANGED (git diff upstream/dev... --diff-filter=d --name-only)"
echo "================================================="
if [ -z "$files" ] ; then
echo "No python file changed. Rather use: tox -e lint"