-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpyproject.toml
96 lines (85 loc) · 3.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
[project]
name = "melobot"
dynamic = ["version"]
description = "A bot framework with much high level features."
authors = [{ name = "aicorein", email = "[email protected]" }]
maintainers = [{ name = "aicorein", email = "[email protected]" }]
dependencies = [
"better-exceptions==0.3.3",
"rich>=13.7.1,<14",
"typing-extensions>=4.10.0",
"colorlog>=6.8.2,<7",
"beartype>=0.18.5",
]
requires-python = ">=3.10"
readme = "README.md"
license = { text = "BSD" }
keywords = ["melobot", "bot framework", "asyncio", "coroutine", "concurrency"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
[project.urls]
Homepage = "https://github.com/Meloland/melobot"
Documentation = "https://docs.melobot.org"
Repository = "https://github.com/Meloland/melobot.git"
Issues = "https://github.com/Meloland/melobot/issues"
[project.optional-dependencies]
onebot = ["pydantic>=2.9.2,<3", "websockets>=14.1,<15", "aiohttp>=3.10.10,<4"]
cli = ["watchdog>=6.0.0,<7"]
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[tool.mypy]
follow_imports = "normal"
ignore_missing_imports = true
show_column_numbers = true
check_untyped_defs = true
disallow_untyped_defs = true
warn_return_any = true
warn_redundant_casts = true
disallow_untyped_calls = true
strict_equality = true
[tool.black]
line-length = 100
[tool.isort]
profile = "black"
line_length = 100
[tool.pdm]
distribution = true
version = { source = "file", path = "src/melobot/_meta.py" }
[tool.pdm.scripts]
isort = { shell = "isort --profile black src/melobot tests scripts docs" }
format = { shell = "black src/melobot tests scripts docs" }
check = { shell = "flake8 src/melobot" }
analyse = { shell = "mypy src/melobot" }
all_lint = { composite = ["isort", "format", "check", "analyse"] }
test = { shell = "pytest -c pytest.ini" }
trace = { shell = "viztracer" }
deps = { shell = "pydeps src/melobot -o pydeps.png -T png --only melobot --rankdir BT --max-module-depth 2 --start-color 160" }
docs = { call = "docs.make:main" }
_deps_export = { call = "scripts.exports:main" }
post_install.composite = ["_deps_export"]
[dependency-groups]
measure = ["viztracer>=0.16.3", "pydeps>=1.12.20", "ipython"]
test = ["pytest>=8.1.1", "pytest-asyncio>=0.24.0"]
docs = [
"sphinx>=7.3.7",
"furo>=2024.1.29",
"myst-parser>=2.0.0",
"sphinx-copybutton>=0.5.2",
]
lint = ["black>=24.2.0", "isort>=5.13.2", "flake8>=7.0.0", "mypy>=1.11.1"]
manage = ["toml>=0.10.2", "pre-commit>=4.0.1", "ipython>=8.32.0"]