-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (32 loc) · 898 Bytes
/
Makefile
File metadata and controls
43 lines (32 loc) · 898 Bytes
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
.PHONY: install lint fix format format-check test test-integration node node-stop check all
install:
uv sync --all-extras --dev
lint:
uv run ruff check .
fix:
uv run ruff check --fix .
uv run ruff format .
format:
uv run ruff format .
format-check:
uv run ruff format --check .
test:
uv run pytest -v
test-integration:
TEMPO_RPC_URL=http://localhost:8545 uv run pytest -m integration -v
node:
docker compose up -d
@echo "Waiting for Tempo node..."
@for i in $$(seq 1 30); do \
if curl -sf -X POST -H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","method":"eth_chainId","params":[],"id":1}' \
http://localhost:8545 > /dev/null 2>&1; then \
echo "Tempo node ready"; exit 0; \
fi; \
sleep 2; \
done; \
echo "Tempo node failed to start"; docker compose logs tempo; exit 1
node-stop:
docker compose down
check: lint format-check test
all: install check