mirror of
https://github.com/home-assistant/core.git
synced 2025-08-01 03:35:09 +02:00
Updated script/lint (#12600)
* Compare to common ancestor * Check if no file was changed
This commit is contained in:
@@ -4,10 +4,14 @@
|
||||
cd "$(dirname "$0")/.."
|
||||
|
||||
if [ "$1" = "--changed" ]; then
|
||||
export files="`git diff upstream/dev --name-only | grep -e '\.py$'`"
|
||||
export files="`git diff upstream/dev... --name-only | grep -e '\.py$'`"
|
||||
echo "================================================="
|
||||
echo "FILES CHANGED (git diff upstream/dev --name-only)"
|
||||
echo "FILES CHANGED (git diff upstream/dev... --name-only)"
|
||||
echo "================================================="
|
||||
if $files >/dev/null; then
|
||||
echo "No python file changed"
|
||||
exit
|
||||
fi
|
||||
printf "%s\n" $files
|
||||
echo "================"
|
||||
echo "LINT with flake8"
|
||||
|
Reference in New Issue
Block a user