-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
44 lines (35 loc) · 851 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
.DEFAULT_GOAL := run-frontend
POETRY := poetry
FLAKE_CC_MAX_THRESHOLD := 10
.PHONY: update
update:
rm -rf poetry.lock
$(POETRY) install
.PHONY: run-frontend
run-frontend:
$(POETRY) run streamlit run ui/app.py
.PHONY: run-backend
run-backend:
$(POETRY) run python bin/main.py
.PHONY: test
test:
$(POETRY) run pytest \
--junitxml=reports/test-report.xml \
--html=reports/report.html \
.PHONY: cov
cov:
$(POETRY) run pytest \
--junitxml=reports/test-report.xml \
--html=reports/report.html \
--cov-report=term-missing \
--cov=internal \
--cov-fail-under=60 tests/
.PHONY: lint
lint:
$(POETRY) run flake8 bin/ internal/ tests/
.PHONY: cc
cc:
$(POETRY) run flake8 --select=C --max-complexity=$(FLAKE_CC_MAX_THRESHOLD) bin/ internal/ tests/
.PHONY: security
security:
$(POETRY) run bandit -c pyproject.toml -r bin/ internal/