-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathpyproject.toml
162 lines (141 loc) · 4.35 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
[project]
name = "agent0"
version = "0.26.2"
# Authors are the current, primary stewards of the repo
# contributors can be found on github
authors = [
{ name = "Dylan Paiton", email = "[email protected]" },
{ name = "Mihai Cosma", email = "[email protected]" },
{ name = "Matthew Brown", email = "[email protected]" },
{ name = "Sheng Lundquist", email = "[email protected]" },
{ name = "Jonny Rhea", email = "[email protected]" },
{ name = "Alex Towle", email = "[email protected]" },
{ name = "Giovanni Effio", email = "[email protected]" },
{ name = "Ryan Goree", email = "[email protected]" },
]
description = "Agent interface for on-chain protocols."
readme = "README.md"
requires-python = ">=3.10, <=3.11"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Development Status :: 3 - Alpha",
"Natural Language :: English",
]
dependencies = [
"dill>=0.3.8",
"docker>=7.1.0",
"eth-abi>=5.1.0",
"eth-typing>=5.0.0",
"eth-account>=0.13.3",
"fixedpointmath>=0.2.1",
"hexbytes>=1.2.1",
"hyperdrivepy>=0.17.1",
"hyperdrivetypes>=1.0.20.13",
"ipython>=8.26.0",
"ipykernel>=6.29.5",
"matplotlib>=3.9.2",
"mplfinance>=0.12.10b0",
"nest_asyncio>=1.6.0",
"numpy>=2.1.0",
"pandas>=2.2.2",
"pandas-stubs>=2.2.2",
"psycopg[binary]>=3.1.19",
"pytest>=8.3.2",
"python-dotenv>=1.0.1",
"requests>=2.32.3",
"rollbar>=1.0.0",
"setuptools>=73.0.1",
"sqlalchemy>=2.0.32",
"sqlalchemy-utils>=0.41.2",
"streamlit>=1.37.1",
"tabulate>=0.9.0",
"tqdm>=4.66.5",
"web3>=7.6.0",
]
[project.optional-dependencies]
dev = [
"autodocsumm>=0.2.11",
"black==24.*",
"coverage",
"ipykernel",
"jupytext",
"myst-parser>=2.0.0",
"nbconvert",
"nbsphinx>=0.8.12",
"numpydoc>=1.5.0",
"pylint>=3.3.0",
"pytest-postgresql",
"pyright",
"sphinx>=6",
"sphinx-autoapi>=2.0.1",
"sphinx_autodoc_typehints>=1.21.8",
"sphinx-rtd-theme>=1.2.2",
"sphinxcontrib-napoleon>=0.7",
"tomli>=2.0.1",
"urllib3",
]
rollbar = [
"rollbar",
]
all = [
"agent0[dev,rollbar]",
]
[project.urls]
"Homepage" = "https://agent0.readthedocs.io/en/latest/"
"Bug Tracker" = "https://github.com/delvtech/agent0/issues"
[build-system]
requires = ["flit_core>=3.2"]
build-backend = "flit_core.buildapi"
[tool.pytest.ini_options]
minversion = "6.0"
addopts = ["--tb=short"]
norecursedirs = ".git examples hyperdrive_solidity"
python_files = "*_test.py test_*.py"
log_cli = true
log_cli_level = "INFO"
log_cli_format = "\n%(asctime)s: %(levelname)s: %(filename)s:%(lineno)s::%(module)s::%(funcName)s:\n%(message)s"
log_cli_date_format = "%y-%m-%d %H:%M:%S"
[tool.pylint.format]
max-line-length = "120"
[tool.black]
line-length = 120
extend-exclude = "\\.ipynb"
[tool.pylint]
exclude = [".venv", ".vscode", "docs"]
[tool.pylance]
exclude = [".venv", ".vscode", "docs"]
[tool.pyright]
exclude = [".venv", ".vscode", "docs"]
[tool.isort]
line_length = 120
profile = "black"
[tool.ruff]
line-length = 120
# Assume Python 3.10.
target-version = "py310"
exclude = [
".venv",
".vscode",
"docs",
"lib"
]
[tool.ruff.lint]
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = ["A", "D", "I", "N", "PL"]
unfixable = []
# We ignore the following rules:
# D203: 1 blank line required before class docstring (incompatible with D211: no blank lines before class docstring)
# D213: multi-line-summary-second-line (incompatible with D212: multi-line summary should start at the first line)
# D413: blank-line-after-last-section (not part of Numpy style guide)
# D415: First line should end with a period, question mark, or exclamation point (in period-only D400)
# D416: section-name-ends-in-colon (numpy style guide doesn't use colons after sections, i.e. Parameters)
ignore = ["D203", "D213", "D413", "D415", "D416"]
# Default is: pycodestyle (E) and Pyflakes (F)
# We add flake8-builtins (A), pydocstyle (D), isort (I), pep8-naming (N), and pylint (PL).
# We remove pycodestyle (E) since it throws erroneous line too long errors.
# We remove Pyflakes (F) since it complains about `import *` which we need.
select = ["A", "D", "I", "N", "PL"]