mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 17:27: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")/.."
|
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$'`"
|
export files="`git diff upstream/dev... --name-only | grep -e '\.py$'`"
|
||||||
echo "================================================="
|
echo "================================================="
|
||||||
echo "FILES CHANGED (git diff upstream/dev... --name-only)"
|
echo "FILES CHANGED (git diff upstream/dev... --name-only)"
|
||||||
@ -22,6 +24,4 @@ if [ "$1" = "--changed" ]; then
|
|||||||
echo "================"
|
echo "================"
|
||||||
pylint $files
|
pylint $files
|
||||||
echo
|
echo
|
||||||
else
|
|
||||||
tox -e lint
|
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user