Add Black

This commit is contained in:
Paulus Schoutsen
2019-07-31 12:23:23 -07:00
parent 0490167a12
commit da05dfe708
16 changed files with 401 additions and 272 deletions
+1 -1
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
View File
@@ -0,0 +1,10 @@
#!/bin/sh
# Format code with black.
cd "$(dirname "$0")/.."
black \
--check \
--fast \
--quiet \
homeassistant tests script
+1
View File
@@ -7,4 +7,5 @@ set -e
cd "$(dirname "$0")/.."
script/bootstrap
pre-commit install
pip3 install -e .