Skip to content
This repository was archived by the owner on Aug 14, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
id: version
run: |
echo "VERSION=$(uv version --short)" >> $GITHUB_ENV

- name: Publish package to GitHub
uses: softprops/action-gh-release@v2
with:
Expand All @@ -42,4 +42,4 @@ jobs:
generate_release_notes: true
files: |
./dist/*.tar.gz
./dist/*.whl
./dist/*.whl
17 changes: 17 additions & 0 deletions .github/workflows/ruff.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Ruff Lint

on:
push:
branches:
- master
pull_request:

jobs:
ruff:
name: Ruff Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6

- name: Run Ruff Lint
uses: chartboost/ruff-action@v1
15 changes: 14 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "AudioMaster"
version = "3.1.2"
version = "3.2.0"
description = "一个基于 NoneBot2 的音频转换插件"
authors = [
{name = "KanbeReina", email = "kano.2525@qq.com"},
Expand All @@ -11,7 +11,9 @@ dependencies = [
"nonebot-adapter-onebot>=2.4.6",
"nonebot-plugin-alconna>=0.59.4",
"nonebot-plugin-apscheduler>=0.5.0",
"nonebot-plugin-localstore>=0.7.4",
"nonebot2[fastapi]>=2.4.3",
"orjson>=3.11.5",
"pathvalidate>=3.3.1",
"pycryptodome>=3.23.0",
"pydantic>=2.11.9",
Expand All @@ -30,5 +32,16 @@ build-backend = "hatchling.build"
dev = [
"pytest>=9.0.2",
"pytest-asyncio>=1.3.0",
"ruff>=0.15.1",
"UserInfos @ file:///${PROJECT_ROOT}/src/libs/userinfos",
]

[tool.ruff.lint]
exclude = [
"src/libs/**"
]

[tool.ruff.format]
exclude = [
"src/libs/**"
]
4 changes: 2 additions & 2 deletions src/AudioMaster/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require("nonebot_plugin_apscheduler")
require("nonebot_plugin_alconna")
require("nonebot_plugin_litestore")
require("nonebot_plugin_localstore")
require("UserInfos")

from .main import *
from .main import * # noqa: E402, F403
3 changes: 1 addition & 2 deletions src/AudioMaster/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@

class Config(BaseModel):
am_deepseek_api_key: Annotated[
Optional[str],
"用于自动转换功能的 DeepSeek API 密钥"
Optional[str], "用于自动转换功能的 DeepSeek API 密钥"
] = None


Expand Down
9 changes: 3 additions & 6 deletions src/AudioMaster/db.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
from pathlib import Path


RESOURCES_PATH = Path(__file__).parent/"resources"
EMOJIS_PATH = RESOURCES_PATH/"emojis"
RESOURCES_PATH = Path(__file__).parent / "resources"
EMOJIS_PATH = RESOURCES_PATH / "emojis"


__all__ = [
"RESOURCES_PATH",
"EMOJIS_PATH"
]
__all__ = ["RESOURCES_PATH", "EMOJIS_PATH"]
Loading