-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
157 lines (140 loc) · 3.67 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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
[project]
name = "erc7730"
description = "ERC-7730 descriptors validation and utilities."
authors = [{ name = "Ledger" }]
maintainers = [{ name = "Ledger" }]
license = "Apache-2.0"
readme = "README.md"
dynamic = ["version"]
requires-python = ">= 3.12, <3.13"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Topic :: Software Development :: Libraries",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.12",
"Typing :: Typed",
]
dependencies = [
"pydantic>=2.8.2",
"eip712-clearsign>=3.0.1",
"typer>=0.12.5",
"eth-utils>=5.0.0",
"jsonschema",
"eth_hash[pycryptodome]",
"rich",
"typer",
"lark>=1.2.2",
"pydantic-string-url>=1.0.2",
"httpx>=0.27.2",
"httpx-file>=0.2.0",
"hishel>=0.0.33",
"xdg-base-dirs>=6.0.2",
"limiter>=0.5.0",
"eth-abi>=5.1.0",
"case-switcher>=1.3.13",
]
[project.urls]
Homepage = "https://ledgerhq.github.io/python-erc7730"
Documentation = "https://ledgerhq.github.io/python-erc7730"
Repository = "https://github.com/LedgerHQ/python-erc7730"
[build-system]
requires = ["pdm-pep517>=1.0.0"]
build-backend = "pdm.pep517.api"
[project.scripts]
erc7730 = "erc7730.main:app"
[tool.pdm.scripts]
lint.help = "Run all linters/formatters (automatically run by pre-commit)"
lint.cmd = "pre-commit run --all-files"
test.help = "Run unit/integration tests suite"
test.cmd = "pytest tests"
docs.help = "Build documentation (output is at docs/build/index.html)"
docs.cmd = "sphinx-build docs docs/build"
all.help = "Run lint+test"
all.composite = ["lint", "test"]
exe.help = "Package the application into a standalone executable"
exe.cmd = "pdm pack --compress --exe --interpreter '/usr/bin/env python3' --output erc7730"
[tool.pdm]
plugins = ["sync-pre-commit-lock", "pdm-packer"]
[tool.pdm.dev-dependencies]
dev = [
"setuptools>=73.0.1",
"pre-commit>=3.8.0",
"pytest>=8.3.2",
"pytest-cov>=5.0.0",
"pytest-xdist[psutil]>=3.6.1",
"pytest-sugar>=1.0.0",
"pytest-depends>=1.0.1",
"pytest-unordered>=0.6.1",
"pytest-raises>=0.11",
"prettydiff[terminal]>=0.1.0",
"sphinx>=8.1.0",
"sphinxcontrib-apidoc>=0.5.0",
"sphinxcontrib-typer>=0.5.0",
"sphinxcontrib-mermaid>=0.9.2",
"sphinxawesome-theme>=5.2.0",
"sphinx-github-style>=1.2.2",
"sphinx-design>=0.6.1",
"sphinx-issues>=4.1.0",
"autodoc-pydantic>=2.2.0",
"myst-parser[linkify]>=4.0.0",
"ruff>=0.6.3",
"ruff-lsp>=0.0.55",
]
[tool.pdm.version]
source = "scm"
write_to = "erc7730/VERSION"
[tool.pytest.ini_options]
testpaths = ["tests"]
python_classes = "!Test"
addopts = [
"--import-mode=importlib",
"-p",
"no:web3",
"-Werror",
"-n=auto",
"--dist=loadscope",
"--basetemp=tmp",
"--junitxml=tests/.tests.xml",
"--cov=src",
"--cov-report=xml:tests/.coverage.xml",
"--cov-report=term",
"--cov-branch",
]
[tool.coverage.paths]
source = ["src"]
[tool.coverage.run]
omit = ["tests/*"]
[tool.ruff]
line-length = 120
[tool.ruff.lint]
select = [
"E",
"F",
"N",
"UP",
"B",
"SIM",
"I",
"TID",
"RUF",
] # see https://docs.astral.sh/ruff/rules
[tool.mypy]
plugins = ["pydantic.mypy"]
follow_imports = "silent"
warn_redundant_casts = true
warn_unused_ignores = true
disallow_any_generics = true
check_untyped_defs = true
disallow_untyped_defs = true
[tool.pydantic-mypy]
init_forbid_extra = true
init_typed = true
warn_required_dynamic_aliases = true
[tool.bandit]
exclude_dirs = ["tests"]
[tool.codespell]
ignore-words = ".codespellignore"
skip = "pdm.lock,*.ambr"