-
Notifications
You must be signed in to change notification settings - Fork 81
/
Makefile
46 lines (36 loc) · 941 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
45
SOURCES=pyk4a example tests
CPP_SOURCES=pyk4a/pyk4a.cpp
TESTS=tests
.PHONY: setup fmt lint test help build
.SILENT: help
help:
echo \
"Available targets: \n" \
"- setup: Install required for development packages\n" \
"- build: Build and install pyk4a package\n" \
"- fmt: Format all code\n" \
"- lint: Lint code syntax and formatting\n" \
"- test: Run tests\n"\
"- test-hardware: Run tests related from connected kinect"
"- test-no-hardware: Run tests without connected kinect"
setup:
pip install -r requirements-dev.txt
build:
pip install -e .
fmt:
isort $(SOURCES)
black $(SOURCES)
clang-format -i $(CPP_SOURCES)
lint:
black --check $(SOURCES)
flake8 $(SOURCES)
mypy $(SOURCES)
clang-format --Werror --dry-run $(CPP_SOURCES)
test:
pytest $(TESTS)
test-hardware:
pytest -m "device" $(TESTS)
test-no-hardware:
pytest -m "not device" $(TESTS)
test-ci:
pytest -m "not device and not opengl" $(TESTS)