1 Star 0 Fork 1

jbf034/hacs-china

forked from 天天轻松/hacs-china 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Makefile 2.42 KB
一键复制 编辑 原始数据 按行查看 历史
Joakim Sørensen 提交于 2023-01-13 11:49 . Split requirements (#2994)
.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'
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/jbf034/hacs-china.git
git@gitee.com:jbf034/hacs-china.git
jbf034
hacs-china
hacs-china
china

搜索帮助