-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [OneBot] It's possible to provide HTTP service address flexibly * [All] Use new formatting args & removed deprecated items * [All] No longer using the pylint * [melobot] Update version flag * [Docs] Added missing data element references * [melobot] Moved plugin share object loading logics to inner module * [Docs] Fix doc typo in FlagMixin method return value * [melobot] "two_steam" now also write warning logs into error log files * [OneBot] Fix OneBot Customize segment type hint errors * [Docs] Updated docs for 3.1.2
- Loading branch information
Showing
59 changed files
with
270 additions
and
1,408 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,12 +2,8 @@ | |
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]"} | ||
] | ||
authors = [{ name = "aicorein", email = "[email protected]" }] | ||
maintainers = [{ name = "aicorein", email = "[email protected]" }] | ||
dependencies = [ | ||
"better-exceptions==0.3.3", | ||
"rich>=13.7.1,<14", | ||
|
@@ -17,7 +13,7 @@ dependencies = [ | |
] | ||
requires-python = ">=3.10" | ||
readme = "README.md" | ||
license = {text = "BSD"} | ||
license = { text = "BSD" } | ||
keywords = ["melobot", "bot framework", "asyncio", "coroutine", "concurrency"] | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
|
@@ -33,7 +29,7 @@ classifiers = [ | |
"Programming Language :: Python :: 3.14", | ||
"Programming Language :: Python :: Implementation :: CPython", | ||
"Topic :: Software Development :: Libraries :: Python Modules", | ||
"Typing :: Typed" | ||
"Typing :: Typed", | ||
] | ||
|
||
|
||
|
@@ -44,14 +40,8 @@ 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", | ||
] | ||
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" | ||
|
@@ -67,44 +57,40 @@ warn_redundant_casts = true | |
disallow_untyped_calls = true | ||
strict_equality = true | ||
|
||
[tool.black] | ||
line-length = 90 | ||
[tool.black] | ||
line-length = 100 | ||
|
||
[tool.isort] | ||
[tool.isort] | ||
profile = "black" | ||
line_length = 90 | ||
line_length = 100 | ||
|
||
[tool.pdm] | ||
distribution = true | ||
version = { source = "file", path = "src/melobot/_meta.py" } | ||
|
||
[tool.pdm.scripts] | ||
isort = {shell = "isort src/melobot"} | ||
format = {shell = "black src/melobot"} | ||
check = {shell = "flake8 src/melobot"} | ||
analyse = {shell = "mypy src/melobot"} | ||
pylint = {shell = "pylint src/melobot"} | ||
all_lint = {composite = ["isort", "format", "check", "analyse", "pylint"]} | ||
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"} | ||
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"} | ||
_deps_export = { call = "scripts.exports:main" } | ||
post_install.composite = ["_deps_export"] | ||
|
||
[dependency-groups] | ||
measure = [ | ||
"viztracer>=0.16.3", | ||
"pydeps>=1.12.20", | ||
"ipython", | ||
] | ||
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", "pylint>=3.2.6", "mypy>=1.11.1"] | ||
manage = [ | ||
"toml>=0.10.2", | ||
"pre-commit>=4.0.1", | ||
"ipython>=8.32.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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.