-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
23 lines (16 loc) · 863 Bytes
/
Copy pathMakefile
File metadata and controls
23 lines (16 loc) · 863 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
.PHONY: install test test-cov lint format clean run-demo
install:
pip install -e ".[dev]"
test:
pytest -v
test-cov:
pytest --cov=promptdiff --cov-report=term-missing --cov-report=html
lint:
ruff check .
mypy promptdiff
format:
ruff format .
clean:
python -c "import shutil, pathlib, glob; [shutil.rmtree(p, ignore_errors=True) for p in glob.glob('build') + glob.glob('dist') + glob.glob('*.egg-info') + glob.glob('.pytest_cache') + glob.glob('.mypy_cache') + glob.glob('.ruff_cache') + glob.glob('.promptdiff_cache') + glob.glob('htmlcov')]; [p.unlink() for p in pathlib.Path('.').glob('.coverage*')]; [shutil.rmtree(p, ignore_errors=True) for p in pathlib.Path('.').glob('**/__pycache__')]"
run-demo:
python -m promptdiff.cli.app test examples/prompts/support_bot_v1.txt examples/prompts/support_bot_v2.txt --eval "latency,cost,similarity" --mock