mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user