Commit Graph

1233 Commits

Author SHA1 Message Date
felinae98 45b4ac3988 🗃️ alter fields to not null, fix typing 2023-03-09 19:25:29 +08:00
felinae98 88bb1d3698 🚚 move db_migration code 2023-03-09 19:25:29 +08:00
uy/sun 9581887994 🎨 调整旧版数据库加载逻辑 (#212) 2023-03-09 17:58:26 +08:00
github-actions[bot] 6a28f1175e 📝 Update changelog 2023-03-09 09:33:35 +00:00
uy/sun 90816796c7 🚚 修改 nonebot_bison 项目结构 (#211)
* 🎨 修改 nonebot_bison 目录位置

* auto fix by pre-commit hooks

* 🚚 fix frontend build target

* 🚚 use soft link

* Revert "🚚 use soft link"

This reverts commit de21f79d5ae1bd5515b04f42a4138cb25ddf3e62.

* 🚚 modify dockerfile

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: felinae98 <731499577@qq.com>
2023-03-09 17:32:51 +08:00
github-actions[bot] 3082587662 📝 Update changelog 2023-03-03 10:10:51 +00:00
felinae98 d07657aeed 🗃️ 又切换回 sqlalchemy,但是 2.0 (#206)
* change: 又切换回 sqlalchemy,但是 2.0

* 将 subscribe 表的两个 json 字段设置为 not null

---------

Co-authored-by: hemengyang <hmy0119@gmail.com>
2023-03-03 18:10:12 +08:00
felinae98 c3a764581e 👷 use pytest-xdist to accelerate test (#186)
* 👷 use pytest-xdist to accelerate test

*  mark flaky

* test(mcbbsnews): 删除重复测试,为测试添加flaky

---------

Co-authored-by: hemengyang <hmy0119@gmail.com>
Co-authored-by: AzideCupric <rukuy@qq.com>
2023-03-03 17:16:15 +08:00
felinae98 0201d5b316 ⬆️ 升级至 NoneBug 0.3
* 🚧 第一次尝试 50/82

* 62/82 调整了清除数据库的位置

* 🚧 pytest-mock

* 🚧 fix test_send

* 🚧 intruduce app request

* 🚧 close and remove tinydb after each test

* 🚧 clean ScheduleTimeWeight table

* 🚧 reload http module to test proxy

*  合并 main 的代码

* 🚧 在每次测试结束后关闭browser

* 🧑‍💻 在mcbbsnews渲染异常时添加logger

---------

Co-authored-by: hemengyang <hmy0119@gmail.com>
Co-authored-by: Azide <rukuy@qq.com>
2023-03-03 15:12:25 +08:00
uy/sun bc521cd38a ♻️ 直接使用官方定时任务插件 (#209) 2023-03-02 22:45:19 +08:00
felinae98 1898607a82 ⬆️ upgrade aiofiles (#204) 2023-02-27 13:38:10 +08:00
felinae98 4d99ccb65a ⬆️ upgrade nonebot-plugin-datastore 2023-02-20 12:48:58 +08:00
github-actions[bot] 71a2b90933 📝 Update changelog 2023-02-20 04:34:45 +00:00
uy/sun e93602dbf6 🐛 修复使用 PostgreSQL 时迁移脚本的报错 (#200) 2023-02-20 12:34:06 +08:00
github-actions[bot] 609340ed92 📝 Update changelog 2023-02-18 11:51:53 +00:00
AzideCupric d7e684e8e5 💄 调整订阅回复内容结构以优化群内订阅体验 (#198)
style(admin-page): 为`后台管理`命令添加别名

test: 调整相关测试的文本
2023-02-18 19:51:19 +08:00
dependabot[bot] e5949620e0 ⬆️ Bump starlette from 0.22.0 to 0.25.0 (#196)
Bumps [starlette](https://github.com/encode/starlette) from 0.22.0 to 0.25.0.
- [Release notes](https://github.com/encode/starlette/releases)
- [Changelog](https://github.com/encode/starlette/blob/master/docs/release-notes.md)
- [Commits](https://github.com/encode/starlette/compare/0.22.0...0.25.0)

---
updated-dependencies:
- dependency-name: starlette
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-15 11:08:36 +08:00
dependabot[bot] d9ca7cc5aa ⬆️ Bump ipython from 8.9.0 to 8.10.0 (#194)
Bumps [ipython](https://github.com/ipython/ipython) from 8.9.0 to 8.10.0.
- [Release notes](https://github.com/ipython/ipython/releases)
- [Commits](https://github.com/ipython/ipython/compare/8.9.0...8.10.0)

---
updated-dependencies:
- dependency-name: ipython
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-14 10:15:09 +08:00
felinae98 21f957b92b 🚀 add nonebot2[fastapi] dependency for dockerfile (#192) 2023-02-06 20:13:27 +08:00
felinae98 01060f8d58 🚀 add fastapi dependency for dockerfile (#189) 2023-02-06 19:23:08 +08:00
github-actions[bot] 453a4331d5 📝 Update changelog 2023-02-05 15:36:57 +00:00
felinae98 64eb427c51 ♻️ refactor send logic (#185) 2023-02-05 23:36:21 +08:00
github-actions[bot] 2e9ca5636e 🔖 Release 0.7.0 2023-02-05 12:49:38 +00:00
github-actions[bot] 39e6ae1275 📝 Update changelog 2023-02-05 12:47:16 +00:00
felinae98 358d6a0a4b 🔖 release 0.7.0 2023-02-05 20:46:33 +08:00
github-actions[bot] cce34ab5d3 📝 Update changelog 2023-02-05 17:09:43 +08:00
AzideCupric 7fa31b6060 ♻️ 使用更加简约的方法生成mcbbsnews的推送,修改测试用例 (#170)
* change(mcbbsnews):使用更加简约的方法生成mcbbsnews的推送,修改测试用例

test(mcbbsnews):添加测试函数小工具

change(mcbbsnews):优化代码

test(mcbbsnews):调整测试

test(mcbbsnews):完善细节部分

fix(mcbbsnews):修改traceback的import位置

test fix(mcbbsnews):删除错误传参

* fix(mcbbsnews): 更新过时的category名称

feat(platform): 添加新的异常(CategoryNotRecognize), 用以区别已知但不支持的category(CategoryNotSupport)和未知的新增category(CategoryNotRecognize)

chore: 为各处的CategoryNotRecognize和CategoryNotSupport添加异常描述

test(mcbbsnews): 更新测试用文件的过时category名称
2023-02-05 17:09:31 +08:00
github-actions[bot] 15e8dca5f8 📝 Update changelog 2023-02-03 13:15:45 +00:00
uy/sun 04f58d6a06 适配 Nonebot 插件元数据 (#184) 2023-02-03 21:15:01 +08:00
github-actions[bot] 0ca9770711 📝 Update changelog 2023-02-02 12:54:59 +00:00
AzideCupric 2ac6f00e1b 👷 添加打上test-render的标签后进行带render标记测试的功能 (#176)
* feat(workflow pytest): 添加打上test-render的标签后进行带render标记测试的功能

fix(workflow pytest): 将env变量变成直接的表达式

fix(test): 删除重复的测试,补充assert

👷 change poetry install action

* ci(workflow): 将触发 all-test 测试的标签更名从 test-render 更名为 all-test
ci(codecov): 为 smoke-test 和 all-test 设置不同的 codecov target
2023-02-02 20:54:22 +08:00
uy/sun 840bfb1bbd ♻️ 清理代码和依赖,并调整目录结构 (#181)
* 删除 alembic 依赖,并提高 datastore 依赖至 0.5.6 及以上

* 调整迁移脚本目录位置,同时删除不需要的 alembic 文件

* 删除 old_sched
2023-02-01 17:51:39 +08:00
github-actions[bot] 3d9d3b435f 📝 Update changelog 2023-01-31 13:04:43 +00:00
uy/sun bec252c48c 多机器人支持 (#179)
* 维护一个群号和QQ号与机器人实例的表

* 随机获取一个对应的机器人

* 获取所有机器人所在群的并集

* 监听到相关事件的时候刷新整个缓存

* 在发送错误后自动刷新缓存

* 合并相同类型的函数

* 添加测试
2023-01-31 21:04:00 +08:00
uy/sun 69a705dcf5 👷 升级版本,解决报错问题 (#180) 2023-01-31 09:26:11 +08:00
github-actions[bot] 278bd33eda 📝 Update changelog 2023-01-30 14:52:54 +00:00
uy/sun 8da8f66fcf 💥 适配最新的 DataStore 插件,并切换模型为 SQLModel (#178)
* 使用 SQLModel

* 处理数据库迁移

* 与之前的模型相匹配

* sqlmodel 和 sqlalchemy 的导入移入测试函数内

并且使用 init_db 且测试前加载插件

* 重命名 alembic_version 表之前先检查是否存在且 version_num 属于插件

* 降级应该是把名称重新命名回去而不是删掉

* 不再设置 arbitrary_types_allowed 为 True
2023-01-30 22:52:11 +08:00
felinae98 312847fb6a 👷 change poetry install action 2023-01-08 19:27:32 +08:00
felinae98 d4ca592b78 📝 remove config src code path in doc 2023-01-06 16:05:16 +08:00
felinae98 84a1f4c0dd 📝 fix nonebot2 doc url 2023-01-06 16:05:16 +08:00
felinae98 f1c1d0297c 📝 update vuepress and readme 2023-01-06 16:05:16 +08:00
dependabot[bot] 290e19868d Bump certifi from 2022.9.24 to 2022.12.7
Bumps [certifi](https://github.com/certifi/python-certifi) from 2022.9.24 to 2022.12.7.
- [Release notes](https://github.com/certifi/python-certifi/releases)
- [Commits](https://github.com/certifi/python-certifi/compare/2022.09.24...2022.12.07)

---
updated-dependencies:
- dependency-name: certifi
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-23 23:17:53 +08:00
github-actions[bot] 53535d02d3 📝 Update changelog 2022-12-23 14:57:42 +00:00
felinae98 6dfdca53d3 🐛 fix able to modify target bug 2022-12-23 22:56:54 +08:00
felinae98 0ebbdd2c0d ♻️ refactor api code 2022-12-23 22:56:41 +08:00
felinae98 410cac1af3 add flaky flag for send with queue 2022-12-23 22:43:55 +08:00
felinae98 cd0a6088e6 📝 update readme badge 2022-12-20 23:48:35 +08:00
github-actions[bot] e601af8034 🔖 Release 0.6.3 2022-12-03 11:23:49 +00:00
felinae98 0b4af8fb92 🔖 release v0.6.3 2022-12-03 19:06:56 +08:00
felinae98 49271398ad 👷 lock setup-python commit hash 2022-12-03 18:19:46 +08:00