-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
116 lines (104 loc) · 2.97 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
[tool.poetry]
name = "ibet-Wallet-API"
version = "24.12"
description = "RPC services that provides utility functions for building a wallet system on ibet-Network."
authors = ["BOOSTRY Co., Ltd. <[email protected]>"]
license = "Apache License, Version 2.0"
[tool.poetry.dependencies]
python = "3.12.2"
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 = {extras = ["rsa"], version = "~1.1.0"}
psycopg = {extras = ["c"], version = "^3.2.0"}
pydantic = {extras = ["email"], version = "~2.9.2"}
sqlalchemy = {extras = ["asyncio"], version = "^2.0.33"}
uvicorn = {extras = ["standard"], version = "~0.32.0"}
web3 = "7.5.0"
tzdata = "^2024.1"
alembic = "^1.14.0"
aiomysql = "0.2.0"
httpx = "^0.27.0"
memray = "^1.14.0"
ibet-wallet-api-explorer = {path = "cmd/explorer", optional = true, develop = true}
textual = {version = "~0.44.1", optional = true}
async-cache = {version = "~1.1.1", optional = true}
typer = {version = "~0.12.3", optional = true}
aiohttp = {version = "~3.10.10", optional = true}
[tool.poetry.group.dev.dependencies]
pytest = "^8.3.2"
pytest-cov = "^5.0.0"
pytest-order = "^1.2.1"
locustio = "0.9.0"
ruff = "^0.5.4"
pre-commit = "^3.6.0"
pytest-alembic = "^0.10.7"
pytest-freezer = "^0.4.8"
textual-dev = "^1.2.1"
pytest-asyncio = "0.23.8"
pytest-aiohttp = "^1.0.5"
ruamel-yaml = "^0.18.6"
pytest-memray = "^1.6.0"
[tool.poetry.extras]
ibet-explorer = [
"ibet-wallet-api-explorer",
"textual",
"async-cache",
"typer",
"aiohttp"
]
[tool.ruff]
line-length = 88
indent-width = 4
target-version = "py312"
[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/*"]
[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",
]
[tool.coverage.run]
branch = true
concurrency = ["thread", "greenlet"]
include = [
"app/api/**/*",
"app/model/**/*",
"app/utils/**/*",
"batch/**/*",
"cmd/**/*"
]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"