forked from gabrys/napi.py
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (23 loc) · 666 Bytes
/
Copy pathMakefile
File metadata and controls
31 lines (23 loc) · 666 Bytes
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
test: lint unit-test acceptance-test
all: clean test build
POETRY = poetry
clean:
@echo "---- Doing cleanup ----"
@rm -rf .mypy_cache .pytest_cache dist
install:
@echo "---- Installing package ---- "
@$(POETRY) install
lint:
@echo "---- Running type check and linter ---- "
@$(POETRY) run mypy napi
@$(POETRY) run black napi
unit-test:
@echo "---- Running unit tests ---- "
@$(POETRY) run pytest -ra -vv test/unit
acceptance-test:
@echo "---- Running acceptance tests ---- "
@$(POETRY) run pytest -ra -vv test/acceptance
build:
@echo "---- Build distributable ---- "
@$(POETRY) build
.PHONY: all config test build clean setup install lint ut at