chore: 更换代码格式化器,移除无用依赖

This commit is contained in:
amtoaer
2024-02-21 23:54:39 +08:00
parent 0bc7b831de
commit 1dd760d445
5 changed files with 30 additions and 173 deletions

View File

@@ -11,24 +11,22 @@ python = "^3.11"
aerich = "0.7.2"
aiofiles = "23.2.1"
bilibili-api-python = {git = "https://github.com/Nemo2011/bilibili-api.git", rev = "16.2.0b2"}
dataclasses-json = "0.6.2"
loguru = "0.7.2"
pydantic = "2.5.3"
tortoise-orm = "0.20.0"
uvloop = "0.19.0"
[tool.poetry.group.dev.dependencies]
black = "23.11.0"
bump-my-version = "0.15.4"
ipython = "8.17.2"
ruff = "0.1.6"
ruff = "0.2.2"
[tool.black]
line-length = 100
[tool.ruff]
line-length = 100
select = [
lint.select = [
"F", # https://beta.ruff.rs/docs/rules/#pyflakes-f
"E",
"W", # https://beta.ruff.rs/docs/rules/#pycodestyle-e-w
@@ -52,7 +50,7 @@ select = [
"NPY", # https://beta.ruff.rs/docs/rules/#numpy-specific-rules-npy
"RUF100", # https://beta.ruff.rs/docs/configuration/#automatic-noqa-management
]
ignore = [
lint.ignore = [
"A003", # Class attribute `id` is shadowing a Python builtin
]
exclude = ["migrations"]