forked from aptos-labs/aptos-python-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
41 lines (33 loc) · 1.43 KB
/
Makefile
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
# Copyright © Aptos Foundation
# SPDX-License-Identifier: Apache-2.0
test:
poetry run python -m unittest discover -s aptos_sdk/ -p '*.py' -t ..
test-coverage:
poetry run python -m coverage run -m unittest discover -s aptos_sdk/ -p '*.py' -t ..
poetry run python -m coverage report
fmt:
find ./examples ./aptos_sdk . -type f -name "*.py" | xargs poetry run autoflake -i -r --remove-all-unused-imports --remove-unused-variables --ignore-init-module-imports
poetry run isort aptos_sdk examples
poetry run black aptos_sdk examples
lint:
poetry run mypy aptos_sdk examples
poetry run flake8 aptos_sdk examples
examples:
poetry run python -m examples.aptos_token
poetry run python -m examples.fee_payer_transfer_coin
poetry run python -m examples.rotate_key
poetry run python -m examples.read_aggregator
poetry run python -m examples.secp256k1_ecdsa_transfer_coin
poetry run python -m examples.simple_aptos_token
poetry run python -m examples.simple_nft
poetry run python -m examples.simulate_transfer_coin
poetry run python -m examples.transfer_coin
poetry run python -m examples.transfer_two_by_two
examples_cli:
poetry run python -m examples.hello_blockchain
# poetry run python -m examples.large_package_publisher CURRENTLY BROKEN -- OUT OF GAS
poetry run python -m examples.multisig
poetry run python -m examples.your_coin
integration_test:
poetry run python -m unittest -b examples.integration_test
.PHONY: examples fmt lint test