forked from kedder/openvario-shell
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
44 lines (35 loc) · 780 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
35
36
37
38
39
40
41
42
43
44
all: black isort mypy test
ctags:
ctags -R `pipenv --venv` src
ln -sf tags .tags
test:
pytest tests
coverage:
pytest \
--cov=ovshell --cov=ovshell_xcsoar --cov=ovshell_core --cov=ovshell_fileman \
--cov=ovshell_connman \
--cov-report=html --cov-report=term \
tests
.PHONY: black-check
black-check:
black --check setup.py src tests
.PHONY: black
black:
black setup.py src tests
isort:
isort setup.py src tests
.PHONY: mypy
mypy:
mypy src tests
.PHONY: mypy-report
mypy-report:
mypy src tests \
--html-report mypy-reports/html \
--txt-report mypy-reports/txt
@cat mypy-reports/txt/index.txt
@echo "HTML report generated in mypy-reports/html/index.html"
.PHONY: reset-rootfs
reset-rootfs:
mkdir -p var
rm -rf var/rootfs
cp -r rootfs-ref var/rootfs