forked from marvingfx/home-assistant-mealie-integration
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
29 lines (19 loc) · 804 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
all: format check test
format-black:
@poetry run black custom_components/mealie tests/**
format-isort:
@poetry run isort custom_components/mealie tests/**
format: format-black format-isort
check-black:
@poetry run black --check custom_components/mealie tests/**
check-isort:
@poetry run isort --check-only custom_components/mealie tests/**
check-flake8:
@poetry run pflake8 custom_components/mealie tests/**
check-mypy:
@poetry run mypy custom_components/mealie tests/**
check: check-black check-isort check-flake8 check-mypy
test:
@poetry run pytest -sv --cov=custom_components tests/
update-requirements:
@poetry export -f requirements.txt --output requirements_dev.txt --dev --without-hashes && poetry export -f requirements.txt --output requirements_test.txt --dev --without-hashes