100 Commits

Author SHA1 Message Date
dependabot[bot]
d37e55c66b ⬆️ Bump the prod-update group with 4 updates
Bumps the prod-update group with 4 updates: [httpx](https://github.com/encode/httpx), [nonebot2](https://github.com/nonebot/nonebot2), [nonebot-plugin-datastore](https://github.com/he0119/nonebot-plugin-datastore) and [pillow](https://github.com/python-pillow/Pillow).


Updates `httpx` from 0.24.1 to 0.25.0
- [Release notes](https://github.com/encode/httpx/releases)
- [Changelog](https://github.com/encode/httpx/blob/master/CHANGELOG.md)
- [Commits](https://github.com/encode/httpx/compare/0.24.1...0.25.0)

Updates `nonebot2` from 2.0.1 to 2.1.0
- [Release notes](https://github.com/nonebot/nonebot2/releases)
- [Changelog](https://github.com/nonebot/nonebot2/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nonebot/nonebot2/compare/v2.0.1...v2.1.0)

Updates `nonebot-plugin-datastore` from 1.1.0 to 1.1.2
- [Release notes](https://github.com/he0119/nonebot-plugin-datastore/releases)
- [Changelog](https://github.com/he0119/nonebot-plugin-datastore/blob/main/CHANGELOG.md)
- [Commits](https://github.com/he0119/nonebot-plugin-datastore/compare/v1.1.0...v1.1.2)

Updates `pillow` from 10.0.0 to 10.0.1
- [Release notes](https://github.com/python-pillow/Pillow/releases)
- [Changelog](https://github.com/python-pillow/Pillow/blob/main/CHANGES.rst)
- [Commits](https://github.com/python-pillow/Pillow/compare/10.0.0...10.0.1)

---
updated-dependencies:
- dependency-name: httpx
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: prod-update
- dependency-name: nonebot2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: prod-update
- dependency-name: nonebot-plugin-datastore
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: prod-update
- dependency-name: pillow
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: prod-update
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-19 14:22:23 +08:00
dependabot[bot]
f4b96e4cd8 ⬆️ Bump the dev-update group with 4 updates
Bumps the dev-update group with 4 updates: [black](https://github.com/psf/black), [nb-cli](https://github.com/nonebot/nb-cli), [ruff](https://github.com/astral-sh/ruff) and [pytest](https://github.com/pytest-dev/pytest).


Updates `black` from 23.7.0 to 23.9.1
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](https://github.com/psf/black/compare/23.7.0...23.9.1)

Updates `nb-cli` from 1.2.3 to 1.2.4
- [Release notes](https://github.com/nonebot/nb-cli/releases)
- [Commits](https://github.com/nonebot/nb-cli/compare/v1.2.3...v1.2.4)

Updates `ruff` from 0.0.287 to 0.0.290
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/BREAKING_CHANGES.md)
- [Commits](https://github.com/astral-sh/ruff/compare/v0.0.287...v0.0.290)

Updates `pytest` from 7.4.1 to 7.4.2
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/7.4.1...7.4.2)

---
updated-dependencies:
- dependency-name: black
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: dev-update
- dependency-name: nb-cli
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: dev-update
- dependency-name: ruff
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: dev-update
- dependency-name: pytest
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: dev-update
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-19 14:21:43 +08:00
dependabot[bot]
c0fe6ed65e
⬆️ Bump the prod-update group with 2 updates (#373)
Bumps the prod-update group with 2 updates: [nonebot-plugin-htmlrender](https://github.com/kexue-z/nonebot-plugin-htmlrender) and [python-socketio](https://github.com/miguelgrinberg/python-socketio).


Updates `nonebot-plugin-htmlrender` from 0.2.1 to 0.2.2
- [Commits](https://github.com/kexue-z/nonebot-plugin-htmlrender/compare/v0.2.1...v0.2.2)

Updates `python-socketio` from 5.8.0 to 5.9.0
- [Release notes](https://github.com/miguelgrinberg/python-socketio/releases)
- [Changelog](https://github.com/miguelgrinberg/python-socketio/blob/main/CHANGES.md)
- [Commits](https://github.com/miguelgrinberg/python-socketio/compare/v5.8.0...v5.9.0)

---
updated-dependencies:
- dependency-name: nonebot-plugin-htmlrender
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: prod-update
- dependency-name: python-socketio
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: prod-update
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-04 18:34:46 +08:00
dependabot[bot]
a0cd4d19df ⬆️ Bump the dev-update group with 4 updates
Bumps the dev-update group with 4 updates: [nb-cli](https://github.com/nonebot/nb-cli), [pre-commit](https://github.com/pre-commit/pre-commit), [ruff](https://github.com/astral-sh/ruff) and [pytest](https://github.com/pytest-dev/pytest).


Updates `nb-cli` from 1.2.2 to 1.2.3
- [Release notes](https://github.com/nonebot/nb-cli/releases)
- [Commits](https://github.com/nonebot/nb-cli/compare/v1.2.2...v1.2.3)

Updates `pre-commit` from 3.3.3 to 3.4.0
- [Release notes](https://github.com/pre-commit/pre-commit/releases)
- [Changelog](https://github.com/pre-commit/pre-commit/blob/main/CHANGELOG.md)
- [Commits](https://github.com/pre-commit/pre-commit/compare/v3.3.3...v3.4.0)

Updates `ruff` from 0.0.286 to 0.0.287
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/BREAKING_CHANGES.md)
- [Commits](https://github.com/astral-sh/ruff/compare/v0.0.286...v0.0.287)

Updates `pytest` from 7.4.0 to 7.4.1
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/7.4.0...7.4.1)

---
updated-dependencies:
- dependency-name: nb-cli
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: dev-update
- dependency-name: pre-commit
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: dev-update
- dependency-name: ruff
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: dev-update
- dependency-name: pytest
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: dev-update
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-04 15:33:24 +08:00
dependabot[bot]
9edde27426
⬆️ Bump ruff from 0.0.285 to 0.0.286 (#351)
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.0.285 to 0.0.286.
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/BREAKING_CHANGES.md)
- [Commits](https://github.com/astral-sh/ruff/compare/v0.0.285...v0.0.286)

---
updated-dependencies:
- dependency-name: ruff
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-29 10:24:26 +08:00
uy/sun
d591cd3486
sparkles: 适配 SAA 0.3 (#349)
*  适配 SAA 0.3

* 🎨 格式化代码
2023-08-27 16:30:30 +08:00
dependabot[bot]
d15fa89991 ⬆️ Bump ruff from 0.0.282 to 0.0.285
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.0.282 to 0.0.285.
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/BREAKING_CHANGES.md)
- [Commits](https://github.com/astral-sh/ruff/compare/v0.0.282...v0.0.285)

---
updated-dependencies:
- dependency-name: ruff
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-22 09:33:47 +08:00
dependabot[bot]
8e3e19a729 ⬆️ Bump nonebot-adapter-onebot from 2.2.3 to 2.2.4
Bumps [nonebot-adapter-onebot](https://github.com/nonebot/adapter-onebot) from 2.2.3 to 2.2.4.
- [Release notes](https://github.com/nonebot/adapter-onebot/releases)
- [Commits](https://github.com/nonebot/adapter-onebot/compare/v2.2.3...v2.2.4)

---
updated-dependencies:
- dependency-name: nonebot-adapter-onebot
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-08 15:14:27 +08:00
dependabot[bot]
2c6fda91ac ⬆️ Bump ruff from 0.0.281 to 0.0.282
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.0.281 to 0.0.282.
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/BREAKING_CHANGES.md)
- [Commits](https://github.com/astral-sh/ruff/compare/v0.0.281...v0.0.282)

---
updated-dependencies:
- dependency-name: ruff
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-08 14:23:35 +08:00
uy_sun
e6a2998ebd ⬆️ 放宽 datastore 的依赖限制 2023-08-05 21:16:43 +08:00
dependabot[bot]
9904b10c8e ⬆️ Bump nonebot-plugin-datastore from 1.0.0 to 1.1.0
Bumps [nonebot-plugin-datastore](https://github.com/he0119/nonebot-plugin-datastore) from 1.0.0 to 1.1.0.
- [Release notes](https://github.com/he0119/nonebot-plugin-datastore/releases)
- [Changelog](https://github.com/he0119/nonebot-plugin-datastore/blob/main/CHANGELOG.md)
- [Commits](https://github.com/he0119/nonebot-plugin-datastore/compare/v1.0.0...v1.1.0)

---
updated-dependencies:
- dependency-name: nonebot-plugin-datastore
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-01 15:34:43 +08:00
dependabot[bot]
d10ba09d98 ⬆️ Bump ruff from 0.0.280 to 0.0.281
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.0.280 to 0.0.281.
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/BREAKING_CHANGES.md)
- [Commits](https://github.com/astral-sh/ruff/compare/v0.0.280...v0.0.281)

---
updated-dependencies:
- dependency-name: ruff
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-01 15:17:39 +08:00
dependabot[bot]
34e8a60ecf ⬆️ Bump ruff from 0.0.278 to 0.0.280
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.0.278 to 0.0.280.
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/BREAKING_CHANGES.md)
- [Commits](https://github.com/astral-sh/ruff/compare/v0.0.278...v0.0.280)

---
updated-dependencies:
- dependency-name: ruff
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-27 16:28:53 +08:00
dependabot[bot]
fb8c93cf1b ⬆️ Bump respx from 0.20.1 to 0.20.2
Bumps [respx](https://github.com/lundberg/respx) from 0.20.1 to 0.20.2.
- [Release notes](https://github.com/lundberg/respx/releases)
- [Changelog](https://github.com/lundberg/respx/blob/master/CHANGELOG.md)
- [Commits](https://github.com/lundberg/respx/compare/0.20.1...0.20.2)

---
updated-dependencies:
- dependency-name: respx
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-26 15:46:22 +08:00
dependabot[bot]
be17988dcd ⬆️ Bump pyjwt from 2.7.0 to 2.8.0
Bumps [pyjwt](https://github.com/jpadilla/pyjwt) from 2.7.0 to 2.8.0.
- [Release notes](https://github.com/jpadilla/pyjwt/releases)
- [Changelog](https://github.com/jpadilla/pyjwt/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/jpadilla/pyjwt/compare/2.7.0...2.8.0)

---
updated-dependencies:
- dependency-name: pyjwt
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-26 11:12:50 +08:00
dependabot[bot]
f00feaaea0 ⬆️ Bump nonebot2 from 2.0.0 to 2.0.1
Bumps [nonebot2](https://github.com/nonebot/nonebot2) from 2.0.0 to 2.0.1.
- [Release notes](https://github.com/nonebot/nonebot2/releases)
- [Changelog](https://github.com/nonebot/nonebot2/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nonebot/nonebot2/compare/v2.0.0...v2.0.1)

---
updated-dependencies:
- dependency-name: nonebot2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-26 10:51:48 +08:00
dependabot[bot]
c94d5e9da6
⬆️ Bump nonebot-plugin-datastore from 0.6.3 to 1.0.0 (#286)
Bumps [nonebot-plugin-datastore](https://github.com/he0119/nonebot-plugin-datastore) from 0.6.3 to 1.0.0.
- [Release notes](https://github.com/he0119/nonebot-plugin-datastore/releases)
- [Changelog](https://github.com/he0119/nonebot-plugin-datastore/blob/main/CHANGELOG.md)
- [Commits](https://github.com/he0119/nonebot-plugin-datastore/compare/v0.6.3...v1.0.0)

---
updated-dependencies:
- dependency-name: nonebot-plugin-datastore
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-19 00:41:15 +08:00
dependabot[bot]
03ec563937
⬆️ Bump pytest-asyncio from 0.18.3 to 0.21.1 (#283)
Bumps [pytest-asyncio](https://github.com/pytest-dev/pytest-asyncio) from 0.18.3 to 0.21.1.
- [Release notes](https://github.com/pytest-dev/pytest-asyncio/releases)
- [Commits](https://github.com/pytest-dev/pytest-asyncio/compare/v0.18.3...v0.21.1)

---
updated-dependencies:
- dependency-name: pytest-asyncio
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-19 00:31:29 +08:00
dependabot[bot]
db8f0f04ba
⬆️ Bump pytest-cov from 3.0.0 to 4.1.0 (#287)
Bumps [pytest-cov](https://github.com/pytest-dev/pytest-cov) from 3.0.0 to 4.1.0.
- [Changelog](https://github.com/pytest-dev/pytest-cov/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest-cov/compare/v3.0.0...v4.1.0)

---
updated-dependencies:
- dependency-name: pytest-cov
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-19 00:17:15 +08:00
dependabot[bot]
1bf428d3b2
⬆️ Bump pillow from 9.5.0 to 10.0.0 (#284)
Bumps [pillow](https://github.com/python-pillow/Pillow) from 9.5.0 to 10.0.0.
- [Release notes](https://github.com/python-pillow/Pillow/releases)
- [Changelog](https://github.com/python-pillow/Pillow/blob/main/CHANGES.rst)
- [Commits](https://github.com/python-pillow/Pillow/compare/9.5.0...10.0.0)

---
updated-dependencies:
- dependency-name: pillow
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-19 00:07:50 +08:00
dependabot[bot]
0bf943f8e5
⬆️ Bump nonebot-plugin-apscheduler from 0.2.0 to 0.3.0 (#285)
Bumps [nonebot-plugin-apscheduler](https://github.com/nonebot/plugin-apscheduler) from 0.2.0 to 0.3.0.
- [Release notes](https://github.com/nonebot/plugin-apscheduler/releases)
- [Commits](https://github.com/nonebot/plugin-apscheduler/compare/v0.2.0...v0.3.0)

---
updated-dependencies:
- dependency-name: nonebot-plugin-apscheduler
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-18 23:53:22 +08:00
Azide
fc699d80ce ⬆️ 升级dev工具依赖
💄 auto fix by pre-commit hooks
2023-07-18 21:43:25 +08:00
Azide
f232ce4c3e 🔧 拆分并排序依赖 2023-07-18 21:43:25 +08:00
Azide
0a8a5c11aa 🔧 添加ruff和nonemoji 2023-07-18 21:43:25 +08:00
Azide
43a612da43 ⬆️ 支持nb2.0.0并更新metadata 2023-06-26 11:57:32 +08:00
felinae98
7ef225a87e ⬆️ upgrade saa 2023-06-11 15:32:57 +08:00
felinae98
2ba9542b63 🚧 use saa-send 2023-06-06 03:30:50 +08:00
felinae98
da8e988ee9 ♻️ use saa 2023-06-06 03:30:50 +08:00
felinae98
4118329bb0 🚧 remove User type 2023-06-06 03:30:50 +08:00
felinae98
d535f5212d 🗃️ add user_target column 2023-06-06 03:30:50 +08:00
dependabot[bot]
818d64fffd
⬆️ Bump requests from 2.28.2 to 2.31.0 (#262)
Bumps [requests](https://github.com/psf/requests) from 2.28.2 to 2.31.0.
- [Release notes](https://github.com/psf/requests/releases)
- [Changelog](https://github.com/psf/requests/blob/main/HISTORY.md)
- [Commits](https://github.com/psf/requests/compare/v2.28.2...v2.31.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-29 20:55:47 +08:00
dependabot[bot]
4a1fc709a0 ⬆️ Bump starlette from 0.26.1 to 0.27.0
Bumps [starlette](https://github.com/encode/starlette) from 0.26.1 to 0.27.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.26.1...0.27.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-19 12:51:21 +08:00
dependabot[bot]
e62317bc6c ⬆️ Bump pymdown-extensions from 9.10 to 10.0
Bumps [pymdown-extensions](https://github.com/facelessuser/pymdown-extensions) from 9.10 to 10.0.
- [Release notes](https://github.com/facelessuser/pymdown-extensions/releases)
- [Commits](https://github.com/facelessuser/pymdown-extensions/compare/9.10...10.0)

---
updated-dependencies:
- dependency-name: pymdown-extensions
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-17 00:19:01 +08:00
felinae98
344bb38eae
⬆️ upgrade datastore 2023-04-02 19:02:28 +08:00
AzideCupric
4e304a43b1
通过 nb-cli 实现数据库一键导入导出 (#210)
* feat: 实现导出存储的订阅信息的功能

* test: 编写导出功能测试

* test: 使用tmp_path

* feat: 实现导入订阅文件功能

* refactor: 将订阅导入导出部分独立出来

* fix: 修复一些拼写错误
test: 完成import的第一个测试

* feat: 将订阅导入导出函数加入nb script

test: 添加cli测试

* test: 完善subs import测试

* 🐛 fix nb cli entrypoint name error

* fix: 修改错误的entry_point, 关闭yaml导出时对键名的排序

* fix: 使用更简短的命令名

* 🚚 将subs_io迁移到config下

* ♻️ 不再使用抛出异常的方式创建目录

* refactor: 将subscribe_export类转为函数

* refactor: 将subscribe_import类转为函数

* refactor: 根据重写的subs_io重新调整cli

* test: 调整重写subs_io后的test

* chore: 清理未使用的import内容

* feat(cli): 将--yaml更改为--format

* test: 调整测试

* fix(cli): 为import添加不支持格式的报错

*  improve export performace

* feat: subscribes_import函数不再需要传入参数函数,而是指定为add_subscribes

fix: nbesf_parser在传入str时将调用parse_raw, 否则调用parse_obj

* feat: subscribes_import现在会根据nbesf_data的版本选择合适的导入方式

* fix(test): 调整测试

* feat: nb bison export命令不再将文件导出到data目录,而是当前工作目录

* docs: 增添相关文档

* fix(test): 修复错误的变量名

---------

Co-authored-by: felinae98 <731499577@qq.com>
2023-03-19 16:29:05 +08: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
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
uy/sun
840bfb1bbd
♻️ 清理代码和依赖,并调整目录结构 (#181)
* 删除 alembic 依赖,并提高 datastore 依赖至 0.5.6 及以上

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

* 删除 old_sched
2023-02-01 17:51:39 +08:00
uy/sun
bec252c48c
多机器人支持 (#179)
* 维护一个群号和QQ号与机器人实例的表

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

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

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

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

* 合并相同类型的函数

* 添加测试
2023-01-31 21:04:00 +08: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
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
felinae98
aa810cc903
⬆️ upgrade nb 2022-11-24 13:19:59 +08:00
felinae98
e249a8d685 🐛 download weibo pics in parse 2022-11-22 22:11:30 +08:00
kexue
cc20c7494e
Update nonebot-plugin-htmlrender (#136)
* Update pyproject.toml

* update lockfile

Co-authored-by: felinae98 <731499577@qq.com>
2022-11-14 17:53:05 +08:00