Fetch the repository succeeded.
.DEFAULT_GOAL := help
SHELL := /bin/bash
help: ## Shows help message.
@printf "\033[1m%s\033[36m %s\033[32m %s\033[0m \n\n" "Development environment for" "HACS" "Integration";
@awk 'BEGIN {FS = ":.*##";} /^[a-zA-Z_-]+:.*?##/ { printf " \033[36m make %-25s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST);
@echo
init: requirements homeassistant-install-old## Install requirements
pre-commit install-hooks --config .github/pre-commit-config.yaml;
requirements:
python3 -m pip --disable-pip-version-check install -U "pip>=8.0.3,<20.3"
python3 -m pip --disable-pip-version-check install -U setuptools wheel
python3 -m pip --disable-pip-version-check install --ignore-installed -r requirements_lint.txt -r requirements_test.txt -c constraints.txt
@bash manage/install_frontend
start: ## Start the HA with the integration
@bash manage/integration_start;
test: ## Run pytest
@python3 -m pytest tests -rxf -x -v -l --cov=./ --cov-report=xml
lint: ## Run linters
set -e
jq -r -e -c . tests/fixtures/*.json
pre-commit install-hooks --config .github/pre-commit-config.yaml;
pre-commit run --hook-stage manual --all-files --config .github/pre-commit-config.yaml;
bellybutton lint
vulture . --min-confidence 75 --ignore-names policy
coverage: ## Display coverage report
@python3 -m pytest tests -rxf -x -v -l --cov=./ --cov-report=xml > /dev/null
@coverage report --skip-covered
update: ## Pull main from hacs/integration
git pull upstream main;
update-base-repositories: ## Update stored base repositories
@python3 manage/update_default_repositories.py;
clear-storage:
rm -rf config/.storage/hacs
rm config/.storage/hacs*
homeassistant-install: ## Install the latest dev version of Home Assistant
python3 -m pip --disable-pip-version-check install -U "pip>=8.0.3,<20.3";
python3 -m pip --disable-pip-version-check install -U setuptools wheel;
python3 -m pip --disable-pip-version-check \
install --upgrade git+https://github.com/home-assistant/home-assistant.git@dev -c constraints.txt;
homeassistant-install-old: ## Install the oldest version of Home Assistant
python3 -m pip --disable-pip-version-check install -U "pip>=8.0.3,<20.3";
python3 -m pip --disable-pip-version-check install -U setuptools wheel;
python3 -m pip --disable-pip-version-check \
install --upgrade homeassistant==2022.11.0 -c constraints.txt;
homeassistant-update: homeassistant-install ## Alias for 'homeassistant-install'
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。