-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathMakefile
More file actions
55 lines (44 loc) · 1.67 KB
/
Copy pathMakefile
File metadata and controls
55 lines (44 loc) · 1.67 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
# Copyright © Aptos Foundation
# SPDX-License-Identifier: Apache-2.0
test:
uv run python -m unittest discover -s aptos_sdk/ -p '*.py' -t ..
uv run behave
test-coverage:
uv run python -m coverage run -m unittest discover -s aptos_sdk/ -p '*.py' -t ..
uv run python -m coverage report
uv run python -m coverage xml -o coverage.xml
uv run python -m coverage html
test-spec:
uv run behave
fmt:
uv run ruff check --fix aptos_sdk examples features
uv run ruff format aptos_sdk examples features
lint:
uv run mypy aptos_sdk examples features
uv run ruff check aptos_sdk examples features
examples:
uv run python -m examples.aptos_token
uv run python -m examples.e2e_smoke
uv run python -m examples.fee_payer_transfer_coin
uv run python -m examples.multikey
uv run python -m examples.rotate_key
uv run python -m examples.read_aggregator
uv run python -m examples.secp256k1_ecdsa_transfer_coin
uv run python -m examples.simple_aptos_token
uv run python -m examples.simple_nft
uv run python -m examples.simulate_transfer_coin
uv run python -m examples.transfer_coin
uv run python -m examples.transfer_two_by_two
smoke:
uv run python -m examples.e2e_smoke
examples_cli:
uv run python -m examples.hello_blockchain
# uv run python -m examples.large_package_publisher CURRENTLY BROKEN -- OUT OF GAS
#uv run python -m examples.multisig CURRENTLY BROKEN requires aptos-core checkout
uv run python -m examples.object_code_deployment
uv run python -m examples.your_coin
integration_test:
uv run python -m unittest -b examples.integration_test
pre-commit: fmt lint
@./.github/scripts/fail_if_modified_files.sh
.PHONY: examples fmt lint pre-commit smoke test test-coverage test-spec