Chore: unify Ruff config and enable async checks (ASYNC, TRIO) (#6351)

### What problem does this PR solve?

Unify Ruff config and enable async checks (ASYNC, TRIO)

### Type of change

- [x] CI/CD or tooling improvement
This commit is contained in:
Yongteng Lei
2025-03-20 22:31:18 +08:00
committed by GitHub
parent ef7e96e486
commit 674f94228b
2 changed files with 12 additions and 1 deletions

View File

@ -138,3 +138,14 @@ full = [
[[tool.uv.index]]
url = "https://mirrors.aliyun.com/pypi/simple"
[tool.ruff]
line-length = 200
exclude = [
".venv",
"rag/svr/discord_svr.py",
]
[tool.ruff.lint]
extend-select = ["ASYNC", "ASYNC1"]
ignore = ["E402"]