-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
86 lines (74 loc) · 2.01 KB
/
Copy pathpyproject.toml
File metadata and controls
86 lines (74 loc) · 2.01 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
[project]
name = "decibel-python-sdk"
version = "0.2.1"
description = "Python SDK for interacting with Decibel, a fully on-chain trading engine built on Aptos."
readme = "README.md"
license = "MIT"
authors = [
{ name = "Decibel", email = "support@decibel.trade" }
]
requires-python = ">=3.11"
keywords = ["decibel", "aptos", "blockchain", "trading", "sdk"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Typing :: Typed",
]
dependencies = [
"aptos-sdk>=0.11.0",
"httpx>=0.28.0",
"pydantic>=2.0.0",
"websockets>=14.0",
]
[dependency-groups]
dev = [
"ruff>=0.14.13",
"pyright>=1.1.399",
"pytest>=9.0.2",
"pytest-asyncio>=0.24.0",
"pytest-cov>=6.0.0",
"pre-commit>=4.0.0",
]
[tool.uv.build-backend]
module-name = "decibel"
data-includes = ["src/decibel/abi/json/*.json"]
[build-system]
requires = ["uv_build>=0.9.21,<0.10.0"]
build-backend = "uv_build"
[tool.ruff]
line-length = 100
target-version = "py311"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
"UP", # pyupgrade
"B", # flake8-bugbear
"SIM", # flake8-simplify
"TC", # flake8-type-checking
]
[tool.ruff.lint.per-file-ignores]
"tests/**" = ["SIM117"] # Nested with statements are idiomatic in test mocking
[tool.ruff.lint.flake8-bugbear]
extend-immutable-calls = ["pydantic.Field"]
[tool.ruff.lint.flake8-type-checking]
runtime-evaluated-base-classes = ["pydantic.BaseModel"]
[tool.ruff.lint.isort]
known-first-party = ["decibel"]
[tool.ruff.format]
quote-style = "double"
[tool.pyright]
include = ["src"]
pythonVersion = "3.11"
typeCheckingMode = "strict"
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_functions = ["test_*"]
asyncio_mode = "auto"