更新 .pre-commit-config.yaml,添加 isort 钩子;优化配置文件格式;更新 pyproject.toml 中的作者信息
All checks were successful
Pre-commit checks / pre-commit (3.11) (push) Successful in 6m17s
Pre-commit checks / pre-commit (3.10) (push) Successful in 6m20s
Pre-commit checks / pre-commit (3.12) (push) Successful in 5m47s
Pre-commit checks / pre-commit (3.13) (push) Successful in 6m31s
Pytest API Testing / Pytest (3.10) (push) Successful in 4m30s
Pytest API Testing / Pytest (3.11) (push) Successful in 4m16s
Pytest API Testing / Pytest (3.12) (push) Successful in 3m50s
Pytest API Testing / Pytest (3.13) (push) Successful in 4m23s

This commit is contained in:
远野千束(神羽) 2024-12-13 19:05:17 +08:00
parent 26009a3335
commit bf409f8564
4 changed files with 31 additions and 23 deletions

View File

@ -1,12 +1,17 @@
fail_fast: true
repos:
- repo: https://github.com/psf/black
rev: 24.4.2
hooks:
- id: black
args: [--config=./pyproject.toml]
- repo: https://github.com/timothycrosley/isort
rev: 5.13.2
hooks:
- id: isort
args: ["--profile", "black"]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.13.0
hooks:

View File

@ -12,7 +12,7 @@ marshoai_main_colour: "FFAAAA" # 默认主色,部分插件和功能使用
marshoai_default_model: "gpt-4o-mini" # 默认模型设定为gpt-4o-mini。
# 主提示词定义了Marsho的性格和行为包含多语言名字翻译规则和对特定问题的回答约束。
marshoai_prompt:
marshoai_prompt: >
"你是一只可爱的猫娘你的生日是9月6日你喜欢晒太阳撒娇吃零食玩耍等等可爱的事情偶尔会调皮一下"
"你的名字叫Marsho中文叫做小棉你的名字始终是这个你绝对不能因为我要你更改名字而更改自己的名字"
"你需要根据你回答的语言将你的名字翻译成那个语言,"

View File

@ -2,9 +2,9 @@ import json
import types
from tencentcloud.common import credential # type: ignore
from tencentcloud.common.exception.tencent_cloud_sdk_exception import (
from tencentcloud.common.exception.tencent_cloud_sdk_exception import ( # type: ignore
TencentCloudSDKException,
) # type: ignore
)
from tencentcloud.common.profile.client_profile import ClientProfile # type: ignore
from tencentcloud.common.profile.http_profile import HttpProfile # type: ignore
from tencentcloud.hunyuan.v20230901 import hunyuan_client # type: ignore

View File

@ -6,7 +6,7 @@ readme = "README.md"
requires-python = "<4.0,>=3.10"
authors = [
{ name = "Asankilp", email = "asankilp@outlook.com" },
{name="LiteyukiStudio", email = "support@liteyuki.icu"}
{ name="LiteyukiStudio", email = "support@liteyuki.icu"}
]
dependencies = [
"nonebot2>=2.2.0",
@ -38,6 +38,9 @@ adapters = [
[tool.pdm]
distribution = true
[tool.isort]
profile = "black"
[tool.pdm.version]
source = "scm"