Add Black
This commit is contained in:
parent
0490167a12
commit
da05dfe708
16 changed files with 401 additions and 272 deletions
|
@ -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
10
script/check_format
Executable file
|
@ -0,0 +1,10 @@
|
|||
#!/bin/sh
|
||||
# Format code with black.
|
||||
|
||||
cd "$(dirname "$0")/.."
|
||||
|
||||
black \
|
||||
--check \
|
||||
--fast \
|
||||
--quiet \
|
||||
homeassistant tests script
|
|
@ -7,4 +7,5 @@ set -e
|
|||
cd "$(dirname "$0")/.."
|
||||
script/bootstrap
|
||||
|
||||
pre-commit install
|
||||
pip3 install -e .
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue