mirror of
https://github.com/home-assistant/core.git
synced 2025-08-01 03:35:09 +02:00
Script/lint, Lazytox: Fix issue to ignore delete files (#13051)
* Fix issue to ignore delete files * Updated lazytox
This commit is contained in:
@@ -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"
|
||||
|
Reference in New Issue
Block a user