-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
57 lines (45 loc) · 1.21 KB
/
Makefile
File metadata and controls
57 lines (45 loc) · 1.21 KB
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
50
51
52
53
54
55
56
57
# TLA+ Evaluation Framework Makefile
.PHONY: install install-legacy install-dev test lint format clean build help
# Default target
help:
@echo "Available commands:"
@echo " install Install the package"
@echo " install-legacy Install with legacy native provider SDKs"
@echo " install-dev Install with development dependencies"
@echo " test Run tests"
@echo " lint Run linting checks"
@echo " format Format code with black"
@echo " clean Clean build artifacts"
@echo " build Build the package"
@echo " example Run example benchmark"
# Installation
install:
pip install -e .
install-legacy:
pip install -e ".[legacy-providers]"
install-dev:
pip install -e ".[dev]"
# Testing
test:
pytest tests/ -v
# Code quality
lint:
flake8 tla_eval/ tests/
mypy tla_eval/
format:
black tla_eval/ tests/ scripts/
# Build and cleanup
build:
python -m build
clean:
rm -rf build/
rm -rf dist/
rm -rf *.egg-info/
find . -type d -name __pycache__ -delete
find . -type f -name "*.pyc" -delete
# Example usage
example:
python3 scripts/run_benchmark.py --method direct_call --task etcd --dry-run
# Test models
test-models:
python3 tests/test_models/test_model_connection.py