-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathpyproject.toml
More file actions
150 lines (139 loc) · 4.02 KB
/
Copy pathpyproject.toml
File metadata and controls
150 lines (139 loc) · 4.02 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
# Project configuration for tools only, not for distribution
[project]
name = "monitoring-scripts-py"
version = "0.1.0"
description = "Monitoring scripts for blockchain protocols"
readme = "README.md"
license = "AGPL-3.0-only"
requires-python = ">=3.12"
dependencies = [
"aiohappyeyeballs>=2.6.1",
"aiohttp==3.14.3",
"aiosignal==1.4.0",
"annotated-types==0.7.0",
"async-timeout==5.0.1",
"attrs==26.1.0",
"bitarray==3.8.1",
"certifi==2026.4.22",
"charset-normalizer==3.4.7",
"ckzg==2.1.7",
"click==8.3.3",
"cytoolz==1.1.0",
"dataclasses-json==0.6.7",
"deprecated==1.3.1",
"eth-abi==5.2.0",
"eth-account==0.13.7",
"eth-hash==0.8.0",
"eth-keyfile==0.8.1",
"eth-keys==0.7.0",
"eth-rlp==2.2.0",
"eth-typing==6.0.0",
"eth-utils==6.0.0",
"frozenlist==1.8.0",
"hexbytes==1.3.1",
"idna==3.15",
"marshmallow==3.26.2",
"multidict==6.7.1",
"ndjson==0.3.1",
"packaging==26.2",
"parsimonious==0.10.0",
"propcache==0.4.1",
"pycryptodome==3.23.0",
"pydantic==2.13.4",
"pydantic-core==2.46.4",
"python-dateutil==2.9.0.post0",
"python-dotenv==1.2.2",
"pyunormalize==17.0.0",
"pyyaml==6.0.2",
"regex==2026.4.4",
"requests==2.33.1",
"rlp==4.1.0",
"six==1.17.0",
"toolz==1.1.0",
"typing-extensions==4.15.0",
"typing-inspect==0.9.0",
"urllib3==2.7.0",
"web3==7.16.0",
"websockets==15.0.1",
"wrapt==2.1.2",
"yarl>=1.23.0",
]
[project.optional-dependencies]
ai = [
"anthropic>=0.40.0",
"openai>=1.0.0",
]
dev = [
"anthropic>=0.40.0",
"openai>=1.0.0",
"mdformat==1.0.0",
"mypy==2.0.0",
"pytest==9.0.3",
"ruff==0.15.12",
"types-deprecated==1.3.1.20260408",
"types-python-dateutil==2.9.0.20260408",
"types-pyyaml==6.0.12.20260408",
"types-requests==2.33.0.20260503",
"types-setuptools==82.0.0.20260408",
]
[tool.uv]
# Supply-chain hardening: never resolve packages that were uploaded
# less than 7 days ago. Mirrors the `min-release-age=7` rule used in
# yearn/risk-score's pnpm setup. Accepts a friendly duration ("1 week")
# or ISO 8601 (e.g. "P7D"). Applies to `uv pip install`, `uv lock`,
# `uv sync`, etc. Also settable via `UV_EXCLUDE_NEWER=1 week`.
exclude-newer = "1 week"
[build-system]
requires = ["setuptools>=42", "wheel"]
build-backend = "setuptools.build_meta"
# Protocol monitors live under `protocols/`; shared code under `utils/` and `automation/`.
# Namespace discovery keeps the editable-install finder in sync as protocols come and go.
# Dirs whose names aren't valid Python identifiers (e.g. `3jane`, `lrt-pegs`,`common-abi`)
# are never imported — they're reached via cwd-relative script/ABI paths — so
# they don't need a finder entry.
[tool.setuptools.packages.find]
where = ["."]
include = ["protocols*", "utils*", "automation*", "api*"]
namespaces = true
[tool.ruff]
# Longer line length for better readability
line-length = 120
target-version = "py312"
# Exclude a variety of commonly ignored directories
exclude = [
".git",
".mypy_cache",
".ruff_cache",
".venv",
"venv",
"__pypackages__",
]
[tool.ruff.lint]
# Enable these rules
select = ["E", "F", "I", "W"] # pycodestyle, pyflakes, isort, and warnings
# Allow unused variables when underscore-prefixed
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
ignore = ['E501']
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
line-ending = "auto"
skip-magic-trailing-comma = false
[tool.mypy]
python_version = "3.12"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
no_implicit_optional = true
strict_optional = true
[tool.pytest.ini_options]
filterwarnings = [
# web3 imports this compatibility module; monitoring code does not use the deprecated API.
"ignore:websockets\\.legacy is deprecated:DeprecationWarning:websockets\\.legacy",
]
[[tool.mypy.overrides]]
module = ["web3.*", "cytoolz.*"]
ignore_missing_imports = true