forked from dlite-tools/aws-s3-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
37 lines (27 loc) · 834 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
PACKAGE=s3_tools
UNIT_TESTS=tests/unit
all: static-tests coverage
.PHONY: all
style:
###### Running style analysis ######
poetry run flake8 $(PACKAGE)
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)
coverage:
###### Running coverage analysis ######
poetry run pytest --cov-report term-missing --cov-report xml --cov $(PACKAGE)
coverage-html:
###### Running coverage analysis with html export ######
poetry run pytest --cov-report html --cov $(PACKAGE)
open htmlcov/index.html
build-docs:
###### Build documentation ######
poetry run make -C docs html