add pycln to auto remove unused imports (#1481)

This commit is contained in:
Ju4tCode
2022-12-17 17:04:38 +08:00
committed by GitHub
parent 932f50d1fb
commit a5d26b7747
6 changed files with 1539 additions and 1417 deletions

View File

@ -38,6 +38,7 @@ aiohttp = { version = "^3.7.4", extras = ["speedups"], optional = true }
httpx = { version = ">=0.20.0,<1.0.0", extras = ["http2"], optional = true }
[tool.poetry.group.dev.dependencies]
pycln = "^2.1.2"
isort = "^5.10.1"
black = "^22.1.0"
nonemoji = "^0.1.2"
@ -83,6 +84,10 @@ force_sort_within_sections = true
src_paths = ["nonebot", "tests"]
extra_standard_library = ["typing_extensions"]
[tool.pycln]
path = "."
all = false
[build-system]
requires = ["poetry_core>=1.0.0"]
build-backend = "poetry.core.masonry.api"