-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
33 lines (24 loc) · 929 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
.PHONY: run lint test test-e2e install prod-install clean
run: install
./venv/bin/python -m streamlit run streamlit_app.py
lint: install
./venv/bin/python -m black .
./venv/bin/python -m isort --profile=black .
./venv/bin/python -m flake8 --config=.flake8 .
test: lint
./venv/bin/python -m pytest -ra -v -m "not e2e" --cov-report=html:coverage --cov-config=pyproject.toml --cov-report=term-missing --cov=. --cov-fail-under=5 ./tests
test-e2e: lint
./venv/bin/python -m pytest -ra -v -m e2e ./tests
test-e2e-baseline: lint
./venv/bin/python -m pytest -ra -v -m e2e --visual-baseline ./tests
coverage: install
./venv/bin/python -m http.server --bind 127.0.0.1 --directory coverage
install: requirements.dev.txt
python -m venv venv
./venv/bin/pip install -r requirements.dev.txt
prod-install: requirements.txt
python -m pip install -r requirements.txt
clean:
rm -rf __pycache__
rm -rf pytest_cache
rm -rf venv