Exclude lightrag/api/webui from pre-commit hooks.
- 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
This commit is contained in:
1
.gitattributes
vendored
Normal file
1
.gitattributes
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
lightrag/api/webui/** -diff
|
@@ -3,16 +3,21 @@ repos:
|
|||||||
rev: v5.0.0
|
rev: v5.0.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: trailing-whitespace
|
- id: trailing-whitespace
|
||||||
|
exclude: ^lightrag/api/webui/
|
||||||
- id: end-of-file-fixer
|
- id: end-of-file-fixer
|
||||||
|
exclude: ^lightrag/api/webui/
|
||||||
- id: requirements-txt-fixer
|
- id: requirements-txt-fixer
|
||||||
|
exclude: ^lightrag/api/webui/
|
||||||
|
|
||||||
|
|
||||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||||
rev: v0.6.4
|
rev: v0.6.4
|
||||||
hooks:
|
hooks:
|
||||||
- id: ruff-format
|
- id: ruff-format
|
||||||
|
exclude: ^lightrag/api/webui/
|
||||||
- id: ruff
|
- id: ruff
|
||||||
args: [--fix, --ignore=E402]
|
args: [--fix, --ignore=E402]
|
||||||
|
exclude: ^lightrag/api/webui/
|
||||||
|
|
||||||
|
|
||||||
- repo: https://github.com/mgedmin/check-manifest
|
- repo: https://github.com/mgedmin/check-manifest
|
||||||
@@ -20,3 +25,4 @@ repos:
|
|||||||
hooks:
|
hooks:
|
||||||
- id: check-manifest
|
- id: check-manifest
|
||||||
stages: [manual]
|
stages: [manual]
|
||||||
|
exclude: ^lightrag/api/webui/
|
||||||
|
Reference in New Issue
Block a user