-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (30 loc) · 746 Bytes
/
Makefile
File metadata and controls
43 lines (30 loc) · 746 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
32
33
34
35
36
37
38
39
40
41
42
43
PACKAGE_NAME=dbreport
.PHONY: install docs lint-html tests
create-db:
python tests\data\db_setup.py "load-dump"
docs:
cd docs && make html
db:
make export-db && make create-db
example-simple:
python .\example.py simple
example-parse:
python .\example.py parse
example-category:
python .\example.py category
export-db:
python tests\data\db_setup.py "create-dump"
install:
python setup.py install
lint:
black $(PACKAGE_NAME) --line-length=79
isort -rc $(PACKAGE_NAME)
pylint $(PACKAGE_NAME)
lint-tests:
black tests --line-length=79
isort -rc tests
pylint tests
tests:
pytest --cov-report html --cov=$(PACKAGE_NAME) tests/$(PACKAGE_NAME)
tests-ci:
pytest --cov-report html --cov=$(PACKAGE_NAME) tests/$(PACKAGE_NAME) -v