forked from darrenburns/ward
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
47 lines (38 loc) · 876 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
46
47
none: clean
help:
@echo "make test test Ward"
@echo
@echo "make format run formatters and linters"
@echo "make lint alias for format"
@echo "make prep format, lint, and test Ward in preparation for a pull request"
@echo
@echo "make setup create virtual environment and install pre-commit"
@echo "make update update dependencies"
@echo "make clean clean up build artifacts"
.PHONY: help
setup:
poetry install
poetry run pre-commit install
.PHONY: requirements
format:
poetry run pre-commit run --all
.PHONY: format
lint: format
.PHONY: lint
test:
poetry run ward
.PHONY: test
coverage:
poetry run coverage run -m ward
poetry run coverage report --skip-empty --show-missing --sort=-cover
poetry run coverage html
.PHONY: coverage
update:
poetry update
.PHONY: update
prep: setup lint test
.PHONY: prep
clean:
rm -rf build/
rm -rf dist/
.PHONY: clean