Bladeren bron

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
tags/v0.18.0
Yongteng Lei 7 maanden geleden
bovenliggende
commit
674f94228b
No account linked to committer's email address
2 gewijzigde bestanden met toevoegingen van 12 en 1 verwijderingen
  1. 1
    1
      .github/workflows/tests.yml
  2. 11
    0
      pyproject.toml

+ 1
- 1
.github/workflows/tests.yml Bestand weergeven

uses: astral-sh/ruff-action@v2 uses: astral-sh/ruff-action@v2
with: with:
version: ">=0.8.2" version: ">=0.8.2"
args: "check --ignore E402"
args: "check"


- name: Build ragflow:nightly-slim - name: Build ragflow:nightly-slim
run: | run: |

+ 11
- 0
pyproject.toml Bestand weergeven



[[tool.uv.index]] [[tool.uv.index]]
url = "https://mirrors.aliyun.com/pypi/simple" 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"]

Laden…
Annuleren
Opslaan