-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
117 lines (107 loc) · 2.99 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
[project]
name = "ibet-Wallet-API"
version = "25.3"
description = "RPC services that provides utility functions for building a wallet system on ibet-Network."
authors = [
{name = "BOOSTRY Co., Ltd.", email = "[email protected]"},
]
license = {text = "Apache License, Version 2.0"}
requires-python = "==3.12.2"
dependencies = [
"boto3~=1.35.11",
"coincurve~=20.0.0",
"eth-keyfile==0.8.1",
"eth-utils~=5.0.0",
"fastapi~=0.115.0",
"gunicorn~=23.0.0",
"hexbytes~=1.2.0",
"orjson~=3.10.3",
"PyMySQL[rsa]~=1.1.0",
"psycopg[c]<4.0.0,>=3.2.0",
"pydantic[email]~=2.10.3",
"sqlalchemy[asyncio]<3.0.0,>=2.0.33",
"uvicorn[standard]~=0.32.0",
"web3==7.5.0",
"tzdata<2025.0,>=2024.1",
"alembic<2.0.0,>=1.14.0",
"aiomysql==0.2.0",
"httpx<1.0.0,>=0.27.0",
"memray<2.0.0,>=1.14.0",
"py-spy>=0.4.0",
"asyncpg>=0.30.0",
]
[tool.uv]
dev-dependencies = [
"pytest<9.0.0,>=8.3.2",
"pytest-cov<6.0.0,>=5.0.0",
"pytest-order<2.0.0,>=1.2.1",
"locustio==0.9.0",
"ruff<1.0.0,>=0.5.4",
"pre-commit<4.0.0,>=3.6.0",
"pytest-alembic<1.0.0,>=0.10.7",
"pytest-freezer<1.0.0,>=0.4.8",
"textual-dev<2.0.0,>=1.2.1",
"pytest-asyncio==0.25.0",
"pytest-aiohttp<2.0.0,>=1.0.5",
"ruamel-yaml<1.0.0,>=0.18.6",
"pytest-memray<2.0.0,>=1.6.0",
]
[project.optional-dependencies]
ibet-explorer = [
"ibet-wallet-api-explorer",
"textual~=0.44.1",
"async-cache~=1.1.1",
"typer~=0.12.3",
"aiohttp~=3.10.10",
]
[tool.uv.sources]
ibet-wallet-api-explorer = { path = "cmd/explorer", editable = true}
[tool.ruff]
line-length = 88
indent-width = 4
target-version = "py312"
exclude = [".venv/*"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
line-ending = "auto"
skip-magic-trailing-comma = false
[tool.ruff.lint]
preview = true
explicit-preview-rules = true
# E: pycodestyle
# F: Pyflakes
select = ["E", "F"]
# UP042: Checks for classes that inherit from both str and enum.Enum
extend-select = ["UP042"]
# E711: Comparison to `None` should be `cond is None`
# E712: Avoid equality comparisons to False
# E721: Use is and is not for type comparisons, or isinstance() for isinstance checks
# E722: Do not use bare except
# E402: Module level import not at top of file
# E731: Do not assign a lambda expression, use a def
# E501: Line too long (trust formatter)
ignore = ["E402", "E711", "E712", "E721", "E722", "E731", "E501"]
exclude = ["migrations/*", ".venv/*", "cov/*"]
[tool.ruff.lint.extend-per-file-ignores]
# F401 [*] xxx imported but unused
# F403 from .main import * used; unable to detect undefined names
"__init__.py" = ["F401", "F403"]
[tool.ruff.lint.isort]
combine-as-imports = true
[tool.pytest.ini_options]
addopts = "-m 'not alembic'"
markers = [
"alembic: tests for alembic",
]
asyncio_default_fixture_loop_scope = "session"
[tool.coverage.run]
branch = true
concurrency = ["thread", "greenlet"]
include = [
"app/api/**/*",
"app/model/**/*",
"app/utils/**/*",
"batch/**/*",
"cmd/**/*"
]