-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (31 loc) · 684 Bytes
/
Makefile
File metadata and controls
43 lines (31 loc) · 684 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
# GENERAL SETUP
.PHONY: install
install:
pip install -e ".[dev]"
pre-commit install
# DOCUMENTATION AND TEST DB
.PHONY: docs
docs:
cd docs && make html
create-db:
python tests\data\db_setup.py "load-dump"
# FORMATTING AND LINTING
format:
black $(PACKAGE_NAME)
isort $(PACKAGE_NAME)
flake8 $(PACKAGE_NAME)
pylint $(PACKAGE_NAME)
pyproject:
validate-pyproject pyproject.toml
pyproject-fmt pyproject.toml
format-tests:
black tests
isort tests
flake8 tests
# TESTING
.PHONY: 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