-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
49 lines (42 loc) · 969 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
45
46
47
48
49
.PHONY: install test lint format clean run evaluate
# Environment setup
install:
pip install -e .
pip install -r requirements.txt
# Testing
test:
pytest
# Code quality
lint:
flake8 .
mypy .
black . --check
isort . --check
format:
black .
isort .
# Cleaning
clean:
rm -rf build/
rm -rf dist/
rm -rf *.egg-info
find . -type d -name __pycache__ -exec rm -r {} +
find . -type f -name "*.pyc" -delete
find . -type f -name "*.pyo" -delete
find . -type f -name "*.pyd" -delete
find . -type f -name ".coverage" -delete
find . -type d -name "*.egg-info" -exec rm -r {} +
find . -type d -name "*.egg" -exec rm -r {} +
# Benchmark commands
run:
python run.py \
--tasks data/dom_tasks.jsonl \
--output results/run_001 \
--headless \
--save-accessibility-tree
evaluate:
python evaluation/auto_eval.py \
--tasks data/dom_tasks.jsonl \
--results results/run_001 \
--ground-truth data/ground_truth \
--output results/run_001/evaluation.json