Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

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

Yongteng Lei674f94228b8d
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 6b437c2bdd..a5a212c12f 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -51,7 +51,7 @@ jobs:
uses: astral-sh/ruff-action@v2
with:
version: ">=0.8.2"
- args: "check --ignore E402"
+ args: "check"
- name: Build ragflow:nightly-slim
run: |
diff --git a/pyproject.toml b/pyproject.toml
index 677fc9033c..1d39c9b2a3 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -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"]