mirror of
https://github.com/home-assistant/core.git
synced 2025-08-15 16:30:04 +00:00
.github
config
docs
homeassistant
script
bootstrap
bootstrap_frontend
bootstrap_server
build_frontend
build_python_openzwave
dev_docker
dev_openzwave_docker
fingerprint_frontend.py
gen_requirements_all.py
get_entities.py
hass-daemon
home-assistant@.service
lint
lint_docker
nginx-hass
release
server
setup
test
test_docker
update
update_mdi.py
tests
virtualization
.coveragerc
.dockerignore
.gitignore
.gitmodules
.hound.yml
.travis.yml
CONTRIBUTING.md
Dockerfile
LICENSE
MANIFEST.in
README.rst
pylintrc
requirements_all.txt
requirements_docs.txt
requirements_test.txt
setup.cfg
setup.py
tox.ini
24 lines
668 B
Bash
Executable File
24 lines
668 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# NOTE: all testing is now driven through tox. The tox command below
|
|
# performs roughly what this test did in the past.
|
|
|
|
if [ "$1" == "--changed" ]; then
|
|
export files=`git diff upstream/dev --name-only | grep -v requirements_all.txt`
|
|
echo "================================================="
|
|
echo "FILES CHANGED (git diff upstream/dev --name-only)"
|
|
echo "================================================="
|
|
echo $files
|
|
echo "================"
|
|
echo "LINT with flake8"
|
|
echo "================"
|
|
flake8 --doctests $files
|
|
echo "================"
|
|
echo "LINT with pylint"
|
|
echo "================"
|
|
pylint $files
|
|
echo
|
|
else
|
|
tox -e lint
|
|
fi
|