From af359f83fc5049c9e9795a63fddcf9ceb0a4c006 Mon Sep 17 00:00:00 2001 From: yangdx Date: Tue, 11 Mar 2025 16:13:51 +0800 Subject: [PATCH] Exclude lightrag/api/webui from pre-commit hooks. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Added .gitattributes for webui files(exclude it from git dfff) - Excluded webui from trailing-whitespace hook - Excluded webui from end-of-file-fixer - Excluded webui from ruff-format hook - Excluded webui from check-manifest hook --- .gitattributes | 1 + .pre-commit-config.yaml | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..1005ab21 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +lightrag/api/webui/** -diff \ No newline at end of file diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 169a7cc7..0629b743 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,16 +3,21 @@ repos: rev: v5.0.0 hooks: - id: trailing-whitespace + exclude: ^lightrag/api/webui/ - id: end-of-file-fixer + exclude: ^lightrag/api/webui/ - id: requirements-txt-fixer + exclude: ^lightrag/api/webui/ - repo: https://github.com/astral-sh/ruff-pre-commit rev: v0.6.4 hooks: - id: ruff-format + exclude: ^lightrag/api/webui/ - id: ruff args: [--fix, --ignore=E402] + exclude: ^lightrag/api/webui/ - repo: https://github.com/mgedmin/check-manifest @@ -20,3 +25,4 @@ repos: hooks: - id: check-manifest stages: [manual] + exclude: ^lightrag/api/webui/