2 Star 4 Fork 1

天天轻松/hacs-china

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
Makefile 2.42 KB
Copy Edit Raw Blame History
Joakim Sørensen authored 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/LuWuAiHome/hacs-china.git
git@gitee.com:LuWuAiHome/hacs-china.git
LuWuAiHome
hacs-china
hacs-china
china

Search