forked from dipdup-io/dipdup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
183 lines (169 loc) · 4.46 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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
[project]
name = "dipdup"
description = "Modular framework for creating selective indexers and featureful backends for dapps"
version = "8.0.0"
license = { text = "MIT" }
authors = [
{ name = "Lev Gorodetskii", email = "dipdup@drsr.io" },
{ name = "Vladimir Bobrikov", email = "vladimir_bobrikov@pm.me" },
{ name = "Michael Zaikin", email = "mz@baking-bad.org" },
{ name = "Igor Sereda", email = "sereda.igor.s@gmail.com" },
]
maintainers = [
{ name = "Lev Gorodetskii", email = "dipdup@drsr.io" },
{ name = "Vladimir Bobrikov", email = "vladimir_bobrikov@pm.me" },
{ name = "Igor Sereda", email = "sereda.igor.s@gmail.com" },
]
readme = "README.md"
requires-python = ">=3.12,<3.13"
keywords = [
"api",
"backend",
"blockchain",
"crypto",
"cryptocurrencies",
"dapp",
"ethereum",
"evm",
"framework",
"indexer",
"indexers",
"starknet",
"sdk",
"smart-contracts",
"tezos",
"web3",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS :: MacOS X",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Typing :: Typed",
]
dependencies = [
# FIXME: KeyError in _make_or_get_ssl_context
"aiohttp==3.10.2",
"aiolimiter~=1.1",
"anyio~=4.4",
"APScheduler~=3.10",
"async-lru~=2.0",
"asyncpg~=0.29",
"click~=8.1",
"datamodel-code-generator~=0.25.9",
"eth-abi~=5.0",
"lru-dict~=1.3",
"orjson~=3.10",
"prometheus-client~=0.20",
"pycryptodome~=3.20",
"pydantic~=2.9",
"pyhumps~=3.8",
"pysignalr~=1.0",
"python-dotenv~=1.0",
"python-json-logger~=2.0",
"ruamel.yaml~=0.18.6",
# FIXME: Argument 1 to "serialize" has incompatible type "Event";
"sentry-sdk==2.12.0",
"sqlparse~=0.5",
"starknet-py==0.24.0",
"strict-rfc3339~=0.7",
"survey~=5.4",
"tabulate~=0.9",
# NOTE: Heavily patched; don't update without testing.
"tortoise-orm==0.21.6",
"uvloop~=0.20",
"web3~=7.2",
]
[tool.pdm.resolution]
# NOTE: Introduced by starknetpy 0.24; depends on half of the PyPI
excludes = ["bip-utils", "ledgerwallet"]
# NOTE: tortoise-orm
overrides = { aiosqlite = "0.20.0" }
[project.urls]
Homepage = "https://dipdup.io/"
Documentation = "https://dipdup.io/docs"
Repository = "https://github.com/dipdup-io/dipdup"
[project.scripts]
dipdup = "dipdup.cli:cli"
[tool.pdm.dev-dependencies]
lint = [
"black",
"mypy",
"ruff",
"types-pytz",
"types-tabulate",
]
test = [
"docker",
"pytest",
"pytest-aiohttp",
"pytest-asyncio",
"pytest-cov",
"pytest-xdist",
]
docs = [
"Sphinx",
"sphinx-click",
"sphinx-markdown-builder",
"watchdog",
]
perf = [
"scalene",
]
[tool.pdm.build]
includes = ["src/dipdup"]
[tool.black]
line-length = 120
target-version = ["py312"]
skip-string-normalization = true
[tool.ruff]
line-length = 120
target-version = "py312"
[tool.ruff.lint]
ignore = [
"E402", # module level import not at top of file
"E501", # line too long
"TCH001", # breaks our runtime Pydantic magic
"UP040", # PEP 695 type aliases are not yet supported by mypy
]
extend-select = ["B", "C4", "FA", "G", "I", "PTH", "Q", "RET", "RUF", "TCH", "UP"]
flake8-quotes = { inline-quotes = "single", multiline-quotes = "double" }
isort = { force-single-line = true, known-first-party = ["dipdup"] }
[tool.mypy]
python_version = "3.12"
plugins = ["pydantic.mypy"]
strict = true
[[tool.mypy.overrides]]
module = "ruamel"
ignore_missing_imports = true
[tool.pytest.ini_options]
addopts="--cov-report=term-missing --cov=dipdup --cov-report=xml -n auto -s -v"
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
log_cli_level = "WARNING"
filterwarnings = [
'ignore:RemovedInMarshmallow4Warning',
'ignore:has no models',
]
[tool.coverage.report]
precision = 2
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise NotImplementedError",
"raise FrameworkException",
"if __name__ == .__main__.:",
"class .*\\bProtocol\\):",
"@(abc\\.)?abstractmethod",
"if TYPE_CHECKING:",
"if env.DEBUG:",
]
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"