Commit Graph

795 Commits

Author SHA1 Message Date
AkiraXie
a68a6e2659 ✏️ fix typo in fastapi 2022-02-04 15:13:31 +08:00
yanyongyu
e720584044
change hook parse typing 2022-02-04 11:12:17 +08:00
yanyongyu
ec9e8511b7
reduce the hook typing limit 2022-02-04 11:06:38 +08:00
yanyongyu
60ccdf8a7a
🐛 fix typing error for logger wrapper 2022-01-30 15:03:10 +08:00
yanyongyu
2cd6867bd1
add more tests 2022-01-30 11:04:02 +08:00
yanyongyu
2ec5917709
🐛 fix missing self instance validate 2022-01-29 23:55:14 +08:00
yanyongyu
5fa7806a2f
improve pydantic validate for message 2022-01-29 18:20:30 +08:00
yanyongyu
b43dfb983d
⚰️ remove unused import 2022-01-29 15:36:25 +08:00
yanyongyu
e887c39998
🏷️ update message typing 2022-01-29 13:56:54 +08:00
Ju4tCode
ac0dd63ca4
🔀 Merge pull request #749
CI: avoid duplicate CI runs
2022-01-28 16:48:06 +08:00
yanyongyu
ad712c59b3
reuse type check code for dependent 2022-01-28 14:49:04 +08:00
yanyongyu
1271a757c9
👽 update type check due to py3.10 UnionType 2022-01-28 14:27:54 +08:00
pre-commit-ci[bot]
fd8fd233b6 🚨 auto fix by pre-commit hooks 2022-01-28 06:04:57 +00:00
yanyongyu
1da7da9fc1
🐛 fix dict(config) raise error 2022-01-27 11:15:44 +08:00
yanyongyu
0885474b94
improve plugin finder 2022-01-26 20:55:23 +08:00
yanyongyu
770e808f1d add require tests 2022-01-26 15:37:35 +08:00
yanyongyu
5c73c80c65 🐛 fix require error 2022-01-26 15:06:53 +08:00
Ju4tCode
596f763c46
🔀 Merge pull request #691
:construction_workerusing: nb-autodoc to generate api docs
2022-01-23 12:07:51 +08:00
yanyongyu
5f3902fe61 ✏️ fix hook typo 2022-01-23 11:48:35 +08:00
yanyongyu
12d9a68351 🐛 fix typing error for mutex 2022-01-22 15:26:22 +08:00
yanyongyu
c4e204001e 💡 add docstrings 2022-01-22 15:23:07 +08:00
yanyongyu
f9674da6ea 💡 add di docstrings 2022-01-21 21:04:17 +08:00
yanyongyu
aef585c60c 💡 add adapter docstring 2022-01-20 14:49:46 +08:00
AkiraXie
f6308916ad 🐛 fix bug and improve test coverage 2022-01-20 03:16:04 +08:00
pre-commit-ci[bot]
b3d0e7c548 🚨 auto fix by pre-commit hooks 2022-01-19 18:10:30 +00:00
AkiraXie
67f5b87492 🐛 fix single_session bug 2022-01-20 02:05:57 +08:00
yanyongyu
98ef09585a 💡 add docstrings 2022-01-19 16:16:56 +08:00
yanyongyu
4701537a48 💡 add docstrings 2022-01-18 23:46:10 +08:00
yanyongyu
608cf859c8 💡 add log, exception, consts docstring 2022-01-18 16:12:12 +08:00
yanyongyu
27b1ded9a1 💡 add config docstring 2022-01-18 12:31:08 +08:00
yanyongyu
a07919ad5c 📝 rewrite docstring 2022-01-17 15:06:53 +08:00
Mix
3b4c4d3081 Implement .count and optimize .get performance for message slice 2022-01-17 00:28:36 +08:00
Mix
1221baaa94 Implement .get and .index methods for Message 2022-01-16 17:13:26 +08:00
pre-commit-ci[bot]
39822378a7 🚨 auto fix by pre-commit hooks 2022-01-16 05:26:55 +00:00
Mix
3041650b4b add advanced message slice support 2022-01-16 13:17:05 +08:00
yanyongyu
3a9a5a9ce9 📝 add frontmatter config 2022-01-16 11:30:09 +08:00
yanyongyu
9b6d8b6efa 📝 test autogen docs 2022-01-15 23:53:36 +08:00
yanyongyu
b7a0ba11d5 🔀 Merge branch dev 2022-01-15 22:12:50 +08:00
yanyongyu
93aec6d3f6 🏷️ add pre-commit flow 2022-01-15 21:27:43 +08:00
hemengyang
8d0951a816 📝 fix wrong syntax and link 2022-01-15 09:35:30 +08:00
yanyongyu
cc343c981f 💩 add logger format todo 2022-01-14 12:32:03 +08:00
hemengyang
98deadb4d6 粗略过一遍,修复一眼可见的问题 2022-01-12 19:41:42 +08:00
hemengyang
ec06010298 令标题符合 markdown 语法 2022-01-12 19:24:01 +08:00
hemengyang
cd69b22d43 令 tip 符合格式 2022-01-12 19:20:59 +08:00
hemengyang
f298930f9d 更新依赖参数的注释 2022-01-12 19:15:56 +08:00
hemengyang
0e97022d3b 调整缩进 2022-01-12 19:10:29 +08:00
hemengyang
6d21cbed55 令用法符合格式 2022-01-12 18:53:30 +08:00
hemengyang
edb20a4786 令异常符合格式 2022-01-12 18:45:35 +08:00
hemengyang
187532930b 令返回符合格式 2022-01-12 18:43:07 +08:00
hemengyang
456d333568 令参数符合标准 2022-01-12 18:31:12 +08:00
hemengyang
a5f32febbd 令参数列表符合 autodoc 格式 2022-01-12 18:25:25 +08:00
hemengyang
4ba1a09fb7 使用 markdown 格式的强调语法 2022-01-12 18:19:21 +08:00
hemengyang
0099364838 删除说明前缀 2022-01-12 18:16:05 +08:00
hemengyang
0e11959347 删除默认值 2022-01-12 18:02:08 +08:00
hemengyang
705a6f7fbf 删除类型 2022-01-12 18:00:56 +08:00
Ju4tCode
f837e5f3fa
Merge pull request #673 from A-kirami/dev
从 Fastapi 的文档中排除驱动器的 HTTP 上报地址
2022-01-11 15:12:37 +08:00
yanyongyu
d82f0c6310 ⚗️ add config option for fastapi 2022-01-11 15:03:17 +08:00
yanyongyu
742d1f1f02 ⚗️ fix load builtin plugin 2022-01-10 22:52:10 +08:00
yanyongyu
1b035ed19b 🔥 add State() deprecation warning 2022-01-10 22:24:45 +08:00
yanyongyu
2ccdc218e0 improve state detect #677 2022-01-10 11:21:01 +08:00
yanyongyu
d6f5216d29 🐛 fix plugin load fail 2022-01-09 23:15:33 +08:00
yanyongyu
3fa8bd2cd0 🐛 fix receive and got missing detect error 2022-01-09 20:34:03 +08:00
明见
096f0d72f1
从 Fastapi 的文档中排除驱动器的 HTTP 上报地址 2022-01-08 22:19:45 +08:00
yanyongyu
0a10a3c18b 📝 add examples 2022-01-07 18:38:04 +08:00
yanyongyu
6b2d8d2674 🐛 fix param missing name 2022-01-07 16:27:35 +08:00
yanyongyu
89ae275793 📝 update handler doc 2022-01-06 17:51:32 +08:00
yanyongyu
e39539a3be add rule test cases 2022-01-05 18:29:11 +08:00
yanyongyu
7f54468868 ✏️ fix typo 2022-01-04 16:04:30 +08:00
yanyongyu
bbbb5bbecd ⬆️ upgrade dependencies 2022-01-04 14:36:32 +08:00
yanyongyu
479952777b ⬆️ upgrade dependency 2022-01-02 18:18:37 +08:00
Mix
43938a004e ♻️ refactor template format_field to improve readability 2022-01-02 13:13:43 +08:00
Mix
983e5aefdb support user-defined format spec for message template 2022-01-01 21:52:54 +08:00
yanyongyu
620938c26c 🐛 fix modal hidden 2022-01-01 21:11:46 +08:00
yanyongyu
338c41abd5 improve const performance 2022-01-01 16:43:48 +08:00
yanyongyu
78d0ec847e 🚧 add handler di example 2021-12-31 23:58:59 +08:00
yanyongyu
ec35f292bd 🐛 fix matcher got receive type error 2021-12-31 22:43:29 +08:00
yanyongyu
d1706e438b 🚧 add store pagination 2021-12-30 12:56:10 +08:00
yanyongyu
23d0b2509e 🐛 fix ws close exception not catch in server 2021-12-30 12:11:31 +08:00
yanyongyu
80c0ac5456 ✏️ fix typo 2021-12-29 23:06:47 +08:00
yanyongyu
af03188f88 🐛 fix on_command block cannot set 2021-12-29 22:23:35 +08:00
yanyongyu
4bd2156929 🐛 fix matcher.skip missing 2021-12-29 21:52:46 +08:00
yanyongyu
f06b78054c 🔥 remove debug option 2021-12-28 15:19:53 +08:00
yanyongyu
5cfeb4e79d 🐛 fix log level bug 2021-12-28 14:33:03 +08:00
yanyongyu
86c859fec2 📝 add create matcher doc 2021-12-28 11:51:14 +08:00
yanyongyu
db826caff4 📝 add load plugin and config doc 2021-12-28 01:02:04 +08:00
yanyongyu
c1e06c2ec0 🐛 fix aiohttp config trierule bugs 2021-12-27 02:26:02 +08:00
Jigsaw
fd9ec5e6fa
Compatible with cross-platform superusers (#642) 2021-12-26 18:46:54 +08:00
yanyongyu
8093c5d154 add websocket close exception 2021-12-26 14:20:09 +08:00
yanyongyu
e64f399370 change websocket client to context manager 2021-12-26 13:45:26 +08:00
yanyongyu
7b204d72e6 change websocket client to context manager 2021-12-26 13:42:13 +08:00
yanyongyu
00c2ee8490 🐛 fix command rule type annotation error 2021-12-25 20:17:12 +08:00
yanyongyu
d773fea709 🐛 fix echo message error 2021-12-25 18:46:44 +08:00
yanyongyu
7ebae277d1 🔥 remove unused import 2021-12-25 17:44:53 +08:00
yanyongyu
9b9941e6c5 💡 write config docs 2021-12-25 14:57:29 +08:00
yanyongyu
188eb110c5 ⚗️ add proxy support 2021-12-25 14:04:53 +08:00
yanyongyu
80258fe2d4 ⚗️ add support for data json file 2021-12-24 23:15:28 +08:00
yanyongyu
6ed87f1910 🔊 add trace logs 2021-12-24 15:04:18 +08:00
yanyongyu
6643f951ef 🐛 fix cannot reject preset arg 2021-12-24 14:09:43 +08:00
yanyongyu
17f3c8fd09 🐛 fix arg message store 2021-12-23 22:16:55 +08:00
yanyongyu
76104d3237 🐛 fix rule checker not parsed 2021-12-23 19:36:29 +08:00
yanyongyu
e3aba26080 ♻️ rewrite builtin rule and permission 2021-12-23 17:50:59 +08:00
yanyongyu
8fb394e4c3 ⚗️ new driver combine expr support 2021-12-23 17:20:26 +08:00
yanyongyu
b9f1890d80 🐛 fix command parse error 2021-12-23 16:01:09 +08:00
yanyongyu
0839d6d062 🐛 fix import error for extra dependencies 2021-12-23 14:29:21 +08:00
yanyongyu
b984f99643 🐛 fix missing endpoint name for routing 2021-12-22 18:50:16 +08:00
yanyongyu
fecdb5367a ⬆️ upgrade dependencies 2021-12-22 16:53:55 +08:00
yanyongyu
9b2fa46921 ✏️ add typing 2021-12-21 18:22:14 +08:00
yanyongyu
b900133ab4 🐛 fix duplicate plugin check 2021-12-21 11:18:34 +08:00
yanyongyu
cf8670c167 ⚗️ add more reject case 2021-12-21 10:57:47 +08:00
yanyongyu
e9b8515cf1 add got receive tests 2021-12-21 00:39:12 +08:00
yanyongyu
883ea18224 improve echo matcher 2021-12-20 15:53:05 +08:00
yanyongyu
ea8f7717b9 ♻️ rewrite quart driver 2021-12-20 15:46:23 +08:00
yanyongyu
44e5182322 🐛 fix parent plugin detect error 2021-12-20 00:31:00 +08:00
yanyongyu
c2c3d5ef4b add test cases 2021-12-20 00:28:02 +08:00
yanyongyu
ca045b2f73 🚧 rewrite fastapi driver implementation 2021-12-18 23:19:37 +08:00
yanyongyu
ec9e159ef6 ♻️ rewrite driver request and response class 2021-12-17 23:20:19 +08:00
yanyongyu
3d762fcbab improve dependency cache 2021-12-16 23:22:25 +08:00
yanyongyu
fe69735ca0 add test cases 2021-12-16 17:28:57 +08:00
yanyongyu
de7c51a518 ⚗️ add regex and shell command di function 2021-12-14 22:40:47 +08:00
yanyongyu
329a1fd226 add di functions 2021-12-14 01:08:48 +08:00
yanyongyu
e942f4076c 🐛 fix builtin bug 2021-12-13 00:37:07 +08:00
yanyongyu
66ba25494a ♻️ rewrite dependency injection system 2021-12-12 18:19:08 +08:00
yanyongyu
6b5a5e53eb 🔥 remove state factory 2021-12-11 17:35:12 +08:00
yanyongyu
5aedc52537 add pytest 2021-12-10 17:02:16 +08:00
yanyongyu
a0d13822c0 ♻️ change matcher run function 2021-12-10 15:46:06 +08:00
yanyongyu
61e17d0de7 🏷️ fix missing type 2021-12-08 16:46:10 +08:00
yanyongyu
b64b02bb45 ✏️ add missing annotationo 2021-12-07 02:16:18 +08:00
yanyongyu
d80c02ae46 ♻️ rewrite adapter abc class 2021-12-06 22:19:05 +08:00
yanyongyu
180aaadda9 🐛 fix coroutine check error 2021-12-06 20:34:14 +08:00
yanyongyu
a85ee6555f 🐛 fix error on python 3.9+ 2021-12-06 11:27:25 +08:00
yanyongyu
5b75b72720 ♻️ use class rule and permission 2021-12-06 10:10:51 +08:00
yanyongyu
ca4d7397f8 🐛 add skip handle for process 2021-12-06 00:17:52 +08:00
yanyongyu
c25ee1cb56 check param first then dependencies 2021-12-05 17:29:38 +08:00
yanyongyu
59e139724b 💩 find errors need to fix 2021-12-04 22:57:44 +08:00
Ju4tCode
b52954a240
Merge pull request #615 from nonebot/fix/httpx-http2
Fix: http2 for fastapi driver
2021-12-04 15:03:17 +08:00
Ju4tCode
aea961b346
Update nonebot/drivers/fastapi.py 2021-12-04 14:15:00 +08:00
yanyongyu
3c428d98c4 📝 add di docs 2021-12-03 23:30:15 +08:00
yanyongyu
226fc0feb3 🐛 fix http2 for fastapi 2021-12-02 20:52:39 +08:00
yanyongyu
7d8a60b033 👷 update doc ci 2021-12-02 03:17:10 +08:00
yanyongyu
0236746e65 🐛 fix rule and permission not handle skip 2021-12-01 19:21:31 +08:00
yanyongyu
b92c1a0b33 ⚗️ add option for ws reconnect 2021-11-30 12:24:09 +08:00
yanyongyu
a6112fdf64 support for mock api result (resolve #605) 2021-11-28 02:34:01 +08:00
yanyongyu
37f55652d9 ♻️ separate fastapi driver 2021-11-27 12:16:31 +08:00
yanyongyu
030237fe22 🐛 fix receive reject 2021-11-25 20:42:48 +08:00
yanyongyu
286729f703 🔥 remove cqhttp files 2021-11-23 16:21:21 +08:00
yanyongyu
a98d98cd12 🎨 format code using black and isort 2021-11-22 23:21:26 +08:00
Ju4tCode
602185a34e
🔀 Merge pull request #588
Feature: `Handler` Dependency Injection
2021-11-22 21:16:36 +08:00
yanyongyu
3120abacb3 allow extra param with default value 2021-11-22 11:38:42 +08:00
yanyongyu
23c237cb2a 💡 add depends example 2021-11-21 17:09:31 +08:00
yanyongyu
760ac693c0 🔥 remove dependency override provider 2021-11-21 16:12:36 +08:00