-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
41 lines (30 loc) · 977 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
PACKAGE=nlpiper
UNIT_TESTS=tests
all: static-tests coverage doc-tests
.PHONY: all
style:
###### Running style analysis ######
poetry run flake8 $(PACKAGE) $(UNIT_TESTS)
typecheck:
###### Running static type analysis ######
poetry run mypy $(PACKAGE)
doccheck:
###### Running documentation analysis ######
poetry run pydocstyle -v $(PACKAGE)
static-tests: style typecheck doccheck
unit-tests:
###### Running unit tests ######
poetry run pytest -v $(UNIT_TESTS)
doc-tests:
###### Running doc tests ######
poetry run pytest --doctest-modules -v $(PACKAGE)
coverage:
###### Running coverage analysis with JUnit xml export ######
poetry run pytest --cov-report term-missing --cov-report xml --cov $(PACKAGE)
coverage-html:
###### Running coverage analysis with html export ######
poetry run pytest -v --cov-report html --cov $(PACKAGE)
open htmlcov/index.html
build-docs:
###### Build documentation ######
poetry run make -C docs html