-
-
Notifications
You must be signed in to change notification settings - Fork 64
Expand file tree
/
Copy pathpyproject.toml
More file actions
186 lines (171 loc) · 4.31 KB
/
pyproject.toml
File metadata and controls
186 lines (171 loc) · 4.31 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
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
184
185
186
[project]
name = "dipdup"
description = "Modular framework for creating selective indexers and featureful backends for dapps"
version = "8.5.2"
license = { text = "MIT" }
authors = [
{ name = "Lev Gorodetskii", email = "github@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 = "Baking Bad team", email = "hello@baking-bad.org" },
]
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 = [
"aiohttp~=3.10",
"aiolimiter~=1.1",
"aiosubstrate~=0.1.0",
"anyio~=4.4",
"appdirs~=1.4",
"APScheduler~=3.10",
"async-lru~=2.0",
"asyncpg~=0.29",
"click~=8.1",
# NOTE: Bug introduded 0.29: F821 Undefined name `bool_aliased` (#2431)
# NOTE: Fixed in 0.51.0, but it breaks our codegen.
"datamodel-code-generator==0.28.5", # pinned
"debugpy>=1.8.15",
"eth-abi~=5.0",
"lru-dict~=1.3",
"mcp~=1.9",
"orjson~=3.10",
"prometheus-client~=0.20",
"pycryptodome~=3.20",
"pydantic~=2.10.3",
"pyhumps~=3.8",
"pysignalr~=1.0",
"python-dotenv~=1.0",
"python-json-logger~=2.0", # pinned, 3.0 is breaking
"ruamel.yaml~=0.18.6",
"ruff~=0.13.2",
"sentry-sdk~=2.16",
"sqlparse~=0.5",
"starknet-py~=0.28.0",
"strict-rfc3339~=0.7",
"survey~=5.4",
"tabulate~=0.9",
"tortoise-orm==0.25.3", # pinned
"uvloop~=0.20",
"web3~=7.2",
]
[project.optional-dependencies]
migrations = [
"aerich~=0.9.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.ruff]
line-length = 120
target-version = "py312"
[tool.ruff.lint]
ignore = [
"E402", # module level import not at top of file
"E501", # line too long
"TC001", # breaks our runtime Pydantic magic
"UP046", # Generic function should use type parameters
"UP047", # Generic class uses `Generic` subclass instead of type parameters
"PTH211", # `os.symlink` should be replaced by `Path.symlink_to`
]
extend-select = ["B", "C4", "FA", "G", "I", "PTH", "RET", "RUF", "TCH", "UP"]
isort = { force-single-line = true, known-first-party = ["dipdup"] }
[tool.ruff.format]
quote-style = "single"
[tool.mypy]
python_version = "3.12"
plugins = ["pydantic.mypy"]
strict = true
exclude = ["^src/demo_"]
[[tool.mypy.overrides]]
module = "ruamel"
ignore_missing_imports = true
[tool.pytest.ini_options]
addopts="-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:",
]
[tool.uv]
environments = [
"sys_platform == 'darwin'",
"sys_platform == 'linux'",
]
[build-system]
requires = ["uv_build"]
build-backend = "uv_build"
[dependency-groups]
lint = [
"mypy",
"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",
]