2024-04-06 11:25:47 +02:00
|
|
|
#!/usr/bin/env bash
|
2025-01-01 16:11:22 -08:00
|
|
|
set -ex
|
2024-04-06 11:25:47 +02:00
|
|
|
cd "$(dirname "$0")/.."
|
|
|
|
|
|
|
|
|
|
# Clone only if the folder doesn't exist
|
|
|
|
|
if [[ ! -d "core" ]]; then
|
|
|
|
|
git clone --depth 1 --branch dev https://github.com/home-assistant/core.git
|
|
|
|
|
fi
|
|
|
|
|
|
2024-04-07 14:01:05 +02:00
|
|
|
pip install \
|
2025-01-01 16:11:22 -08:00
|
|
|
colorlog \
|
|
|
|
|
pip \
|
|
|
|
|
ruff
|
2024-04-07 14:01:05 +02:00
|
|
|
|
2025-06-15 21:31:51 -07:00
|
|
|
uv venv --python 3.13
|
2024-04-07 14:01:05 +02:00
|
|
|
./scripts/setup-dependencies
|
|
|
|
|
./scripts/setup-symlinks
|
2025-01-01 16:11:22 -08:00
|
|
|
uv run pre-commit install-hooks
|