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 \
|
2025-11-30 17:14:27 +01:00
|
|
|
ruff \
|
|
|
|
|
uv
|
2024-04-07 14:01:05 +02:00
|
|
|
|
2025-11-30 17:14:27 +01:00
|
|
|
pip cache purge
|
|
|
|
|
|
2026-04-24 11:31:53 -07:00
|
|
|
uv venv --clear --python 3.14.2
|
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
|