forked from he0119/nonebot-plugin-datastore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
79 lines (67 loc) · 2.03 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
[tool.poetry]
name = "nonebot-plugin-datastore"
version = "0.6.2"
description = "适用于 Nonebot2 的数据存储插件"
authors = ["hemengyang <hmy0119@gmail.com>"]
license = "MIT"
readme = "README.md"
homepage = "https://github.com/he0119/nonebot-plugin-datastore"
repository = "https://github.com/he0119/nonebot-plugin-datastore"
documentation = "https://github.com/he0119/nonebot-plugin-datastore#readme"
[tool.poetry.dependencies]
python = "^3.8"
nonebot2 = { extras = ["httpx"], version = "^2.0.0-rc.1" }
nonebot-plugin-localstore = ">=0.2.0,!=0.3.0,!=0.4.0,<0.5.0"
sqlalchemy = "^2.0.3"
aiosqlite = ">=0.17,<0.19"
alembic = "^1.9.1"
anyio = { version = ">=3.6", optional = true }
click = { version = ">=8.0", optional = true }
typing-extensions = { version = ">=4.4", optional = true }
rtoml = { version = "^0.9.0", optional = true }
pyyaml = { version = "^6.0", optional = true }
[tool.poetry.group.dev.dependencies]
black = "*"
isort = "*"
pre-commit = "*"
nonebug = "^0.3.1"
pytest-cov = "^4.0.0"
pytest-xdist = "^3.1.0"
pytest-mock = "^3.10.0"
pytest-asyncio = ">=0.20.3,<0.22.0"
nb-cli = "^1.0.0"
nonebot2 = { extras = ["httpx", "fastapi"], version = "^2.0.0-rc.1" }
[tool.poetry.extras]
cli = ["anyio", "click", "typing-extensions"]
toml = ["rtoml"]
yaml = ["pyyaml"]
all = ["anyio", "click", "typing-extensions", "rtoml", "pyyaml"]
[tool.black]
line-length = 88
[tool.isort]
profile = "black"
line_length = 88
skip_gitignore = true
[tool.pytest.ini_options]
asyncio_mode = "auto"
[tool.pyright]
pythonVersion = "3.8"
pythonPlatform = "All"
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"@overload",
"except ImportError:",
]
omit = ["*/script/command.py", "*/migrations/*"]
[tool.poetry.plugins.nb_scripts]
datastore = "nonebot_plugin_datastore.script.cli:main"
[tool.nonebot]
plugins = ["nonebot_plugin_datastore"]
plugin_dirs = ["tests/registry"]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"