mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 08:47:10 +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:
parent
78dd010a04
commit
17ba813a6d
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user