-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (30 loc) · 1.13 KB
/
Makefile
File metadata and controls
42 lines (30 loc) · 1.13 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
.PHONY: dev lint format test serve contract-build smoke-setup test-deposit clean
PLATFORM_TOOLS_VERSION ?= v1.53
dev:
uv sync --all-groups
lint:
uv run ruff format --check . && uv run ruff check .
format:
uv run ruff format . && uv run ruff check --fix .
test:
uv run pytest
test-fast:
uv run pytest -x -q --no-cov
serve:
uv run uvicorn level5.proxy.main:app --reload --host 0.0.0.0 --port 18515
contract-build:
cd contracts/sovereign-contract && cargo-build-sbf --tools-version $(PLATFORM_TOOLS_VERSION)
cd contracts/sovereign-contract && anchor idl build -o target/idl/sovereign_contract.json
smoke-setup:
uv run python scripts/smoke_setup.py
test-deposit:
@test -n "$(DEPOSIT_CODE)" || (echo "Usage: make test-deposit DEPOSIT_CODE=XXXXXXXX" && exit 1)
cd contracts/sovereign-contract && NODE_PATH=node_modules \
ANCHOR_PROVIDER_URL=http://127.0.0.1:8899 \
ANCHOR_WALLET=~/.config/solana/id.json \
node ../../scripts/test_deposit.js $(DEPOSIT_CODE)
audit:
uv run pip-audit
clean:
rm -rf .ruff_cache/ .pytest_cache/ htmlcov/ .coverage
find . -type d -name __pycache__ -not -path "./venv/*" -exec rm -rf {} + 2>/dev/null || true