-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: 引入格式化工具配置和代码检查工具配置 * fix: 修正 `nonebot_plugin_guild_patch` 的导入时机 * refactor(routes): 使用自动扫描的方式自动导入路由规则 * fix: 修正一些代码检查问题 * chore(release): v2.6.16
- Loading branch information
Showing
14 changed files
with
72 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
minimum_pre_commit_version: "3.2.0" | ||
files: ^.*\.py$ | ||
repos: | ||
- repo: https://github.com/charliermarsh/ruff-pre-commit | ||
rev: 'v0.0.257' | ||
hooks: | ||
- id: ruff | ||
args: | ||
- --fix | ||
- repo: https://github.com/psf/black | ||
rev: 23.1.0 | ||
hooks: | ||
- id: black |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "ELF_RSS" | ||
version = "2.6.15" | ||
version = "2.6.16" | ||
description = "QQ机器人 RSS订阅 插件,订阅源建议选择 RSSHub" | ||
authors = ["Quan666 <[email protected]>"] | ||
license = "GPL-3.0-only" | ||
|
@@ -42,12 +42,24 @@ nb-cli = "^1.0.5" | |
|
||
[tool.mypy] | ||
python_version = "3.8" | ||
plugins = [ | ||
"pydantic.mypy" | ||
] | ||
ignore_missing_imports = true | ||
implicit_reexport = true | ||
pretty = true | ||
show_error_codes = true | ||
strict = true | ||
|
||
[tool.ruff] | ||
select = ["F", "E", "W", "I"] | ||
target-version = "py38" | ||
line-length = 120 | ||
|
||
[tool.ruff.per-file-ignores] | ||
"__init__.py" = ["F401"] | ||
"*.py" = ["E402", "F811"] | ||
|
||
[build-system] | ||
requires = ["poetry-core>=1.0.0"] | ||
build-backend = "poetry.core.masonry.api" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
from . import ( | ||
bilibili, | ||
danbooru, | ||
nga, | ||
pixiv, | ||
south_plus, | ||
twitter, | ||
weibo, | ||
yande_re, | ||
youtube, | ||
) | ||
from typing import List | ||
|
||
|
||
def __list_all_modules() -> List[str]: | ||
from pathlib import Path | ||
|
||
module_paths = list(Path(__file__).parent.glob("*.py")) | ||
return [module.name[:-3] for module in module_paths if module.name != "__init__.py"] | ||
|
||
|
||
ALL_MODULES = sorted(__list_all_modules()) | ||
__all__ = ALL_MODULES + ["ALL_MODULES"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters