forked from unlobito/ha-hildebrandglow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (27 loc) · 859 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
help : Makefile
@echo "Usage: make [command]"
@echo ""
@sed -n 's/^##//p' $<
## install-dev Install dependencies required for development
install-dev:
pip install -r requirements-dev.txt
## format Run linters on the codebase and attempt to fix any issues found
format:
isort custom_components
black -l 88 -t py38 custom_components
flake8 custom_components
mypy custom_components/hildebrandglow/
lint-isort:
isort --check custom_components
lint-black:
black -l 88 -t py38 --check custom_components
lint-flake8:
flake8 custom_components
lint-mypy:
ifeq ($(CI),true)
MYPYPATH="${HOME}/homeassistant/core-master" mypy custom_components/hildebrandglow/
else
mypy custom_components/hildebrandglow/
endif
## lint Dry-run linters on the codebase without making any changes
lint: lint-isort lint-black lint-flake8 lint-mypy