-
Notifications
You must be signed in to change notification settings - Fork 5
/
pyproject.toml
143 lines (126 loc) · 4.63 KB
/
pyproject.toml
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
[project]
name = "web3cli"
version = "1.1.36"
description = "Interact with blockchains and smart contracts using the command line"
authors = [
{name = "coccoinomane", email = "coccoinomane@gmail.com"},
]
readme = "README.md"
keywords = ["web3", "w3", "cli", "evm", "blockchain", "ethereum", "binance", "avalanche"]
license = {text = "MIT"}
requires-python = ">=3.9"
dependencies = [
"cement>=3.0.10",
"cement[colorlog]>=3.0.10",
"cement[jinja2]>=3.0.10",
"cement[yaml]>=3.0.10",
"cement[tabulate]>=3.0.10",
"web3>=6.0.0",
"web3client>=1.3.10",
"peewee>=3.15.3",
"cryptography>=38.0.3",
"ruamel.yaml>=0.17.21",
"eth-account>=0.8.0",
]
[tool.pdm.dev-dependencies]
dev = [
"mypy>=1.5.1",
"eth-ape[recommended-plugins]>=0.6.0",
"isort>=5.12.0",
"pre-commit>=3.3.3",
"autoflake>=2.2.0",
"black>=23.3.0",
"pytest>=7.0.0",
"types-requests>=2.31.0",
"typing-extensions>=4.4.0",
]
[tool.pdm.scripts]
w3 = {cmd = "w3", help = "Run the CLI in dev mode"}
w3eth = {cmd = "w3eth", help = "Run the CLI in dev mode, on Ethereum"}
w3bnb = {cmd = "w3bnb", help = "Run the CLI in dev mode, on BNB chain"}
w3avax = {cmd = "w3avax", help = "Run the CLI in dev mode, on Avalanche chain"}
w3matic = {cmd = "w3matic", help = "Run the CLI in dev mode, on Polygon POS chain"}
w3cro = {cmd = "w3cro", help = "Run the CLI in dev mode, on Cronos chain"}
w3arb = {cmd = "w3arb", help = "Run the CLI in dev mode, on Arbitrum One chain"}
w3era = {cmd = "w3era", help = "Run the CLI in dev mode, on zkSync Era chain"}
w3erat = {cmd = "w3erat", help = "Run the CLI in dev mode, on zkSync Era testnet chain"}
w3gno = {cmd = "w3gno", help = "Run the CLI in dev mode, on Gnosis (xDAI) chain"}
w3op = {cmd = "w3op", help = "Run the CLI in dev mode, on Optimism OP chain"}
w3scroll = {cmd = "w3scroll", help = "Run the CLI in dev mode, on Scroll ZK chain"}
w3base = {cmd = "w3base", help = "Run the CLI in dev mode, on Base chain"}
w3zkf = {cmd = "w3zkf", help = "Run the CLI in dev mode, on ZKFair chain"}
w3manta = {cmd = "w3manta", help = "Run the CLI in dev mode, on Manta Pacific chain"}
w3ftm = {cmd = "w3fantom", help = "Run the CLI in dev mode, on Fantom Opera chain"}
w3fantom = {cmd = "w3fantom", help = "Run the CLI in dev mode, on Fantom Opera chain"}
test = "ape test tests --network ::foundry"
test_verbose = "ape test tests -s --network ::foundry"
test_fast = "ape test tests -m 'not remote' --network ::foundry"
db_open = "open -a TablePlus $HOME/.web3cli/database/web3cli.sqlite"
db_open_test = "open -a TablePlus $HOME/.web3cli/database/web3cli_test.sqlite"
db_delete = "rm -rf $HOME/.web3cli/database"
docker = "pdm run clean && docker build -t web3cli:latest ."
release = "gh release create v{args} dist/web3cli-{args}.tar.gz dist/web3cli-{args}-py3-none-any.whl --generate-notes"
[tool.pdm.build]
includes = ["src"]
[project.scripts]
w3 = "web3cli.main:main"
w3eth = "web3cli.main:w3eth"
w3bnb = "web3cli.main:w3bnb"
w3avax = "web3cli.main:w3avax"
w3matic = "web3cli.main:w3matic"
w3cro = "web3cli.main:w3cro"
w3arb = "web3cli.main:w3arb"
w3era = "web3cli.main:w3era"
w3erat = "web3cli.main:w3erat"
w3gno = "web3cli.main:w3gno"
w3op = "web3cli.main:w3op"
w3scroll = "web3cli.main:w3scroll"
w3base = "web3cli.main:w3base"
w3zkf = "web3cli.main:w3zkf"
w3manta = "web3cli.main:w3manta"
w3ftm = "web3cli.main:w3fantom"
w3fantom = "web3cli.main:w3fantom"
[project.urls]
homepage = "https://github.com/coccoinomane/web3cli"
repository = "https://github.com/coccoinomane/web3cli"
[build-system]
requires = ["pdm-pep517>=1.0.0"]
build-backend = "pdm.pep517.api"
[tool.black]
line-length = 88
[tool.setuptools.package-data]
"web3cli" = ["py.typed"]
"web3core" = ["py.typed"]
[tool.mypy]
check_untyped_defs = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
ignore_missing_imports = true
no_implicit_optional = true
show_error_codes = true
strict_equality = true
strict_optional = false
warn_redundant_casts = true
warn_unused_configs = true
warn_unused_ignores = true
disallow_any_unimported = false
disallow_untyped_calls = false
exclude = [
'__pypackages__',
]
[tool.pytest.ini_options]
filterwarnings = "ignore::DeprecationWarning"
markers = [
"remote: tests that need an internet connection (deselect with '-m \"not remote\"')",
"local: tests that require a local blockchain to be run, e.g. ganache, anvil or hardhat network (deselect with '-m \"not local\"')",
"contracts: tests of the ape contracts",
]
[tool.isort]
profile = "black"
src_paths = ["src", "tests"]
[tool.autoflake]
in_place = true
remove_all_unused_imports = true
ignore_pass_after_docstring = true
remove_unused_variables = false