-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathJustfile
More file actions
42 lines (35 loc) · 1.53 KB
/
Justfile
File metadata and controls
42 lines (35 loc) · 1.53 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
init python="python3":
{{ python }} -m venv .venv
source .venv/bin/activate && pip install poetry
source .venv/bin/activate && poetry lock
source .venv/bin/activate && poetry install
format:
source .venv/bin/activate && poetry run ruff format
lint:
source .venv/bin/activate && poetry run ruff check
source .venv/bin/activate && poetry run mypy utxorpc
build:
source .venv/bin/activate && poetry build
init-examples:
cd examples && python3 -m venv .venv
cd examples && source .venv/bin/activate && pip install poetry
cd examples && source .venv/bin/activate && poetry install
run-examples api_key:
cd examples && source .venv/bin/activate && DMTR_API_KEY={{api_key}} poetry run python sync.py
cd examples && source .venv/bin/activate && DMTR_API_KEY={{api_key}} poetry run python query.py
cd examples && source .venv/bin/activate && DMTR_API_KEY={{api_key}} poetry run python submit.py
cd examples && source .venv/bin/activate && DMTR_API_KEY={{api_key}} poetry run python watch.py
run-examples-local:
cd examples && source .venv/bin/activate && poetry run python sync.py --local
cd examples && source .venv/bin/activate && poetry run python query.py --local
cd examples && source .venv/bin/activate && poetry run python submit.py
cd examples && source .venv/bin/activate && poetry run python watch.py --local
clean:
rm -rf .mypy_cache
rm -rf .ruff_cache
rm -rf .venv
rm -rf __pycache__
rm -rf utxorpc/__pycache__
rm -rf utxorpc/generics/__pycache__
rm -rf utxorpc/generics/clients/__pycache__
rm -rf dist