Add Black

This commit is contained in:
Paulus Schoutsen 2019-07-30 16:59:12 -07:00
parent 0490167a12
commit da05dfe708
16 changed files with 401 additions and 272 deletions

View file

@ -7,4 +7,4 @@ set -e
cd "$(dirname "$0")/.."
echo "Installing test dependencies..."
python3 -m pip install tox colorlog
python3 -m pip install tox colorlog pre-commit

10
script/check_format Executable file
View file

@ -0,0 +1,10 @@
#!/bin/sh
# Format code with black.
cd "$(dirname "$0")/.."
black \
--check \
--fast \
--quiet \
homeassistant tests script

View file

@ -7,4 +7,5 @@ set -e
cd "$(dirname "$0")/.."
script/bootstrap
pre-commit install
pip3 install -e .