yangdx commited on
Commit ·
a74d363
1
Parent(s): 76e617d
Exclude lightrag/api/webui from pre-commit hooks.
Browse files- 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 -0
- .pre-commit-config.yaml +6 -0
.gitattributes
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
|
|
| 1 |
*.png filter=lfs diff=lfs merge=lfs -text
|
| 2 |
*.ttf filter=lfs diff=lfs merge=lfs -text
|
| 3 |
*.ico filter=lfs diff=lfs merge=lfs -text
|
|
|
|
| 1 |
+
lightrag/api/webui/** -diff
|
| 2 |
*.png filter=lfs diff=lfs merge=lfs -text
|
| 3 |
*.ttf filter=lfs diff=lfs merge=lfs -text
|
| 4 |
*.ico filter=lfs diff=lfs merge=lfs -text
|
.pre-commit-config.yaml
CHANGED
|
@@ -3,16 +3,21 @@ repos:
|
|
| 3 |
rev: v5.0.0
|
| 4 |
hooks:
|
| 5 |
- id: trailing-whitespace
|
|
|
|
| 6 |
- id: end-of-file-fixer
|
|
|
|
| 7 |
- id: requirements-txt-fixer
|
|
|
|
| 8 |
|
| 9 |
|
| 10 |
- repo: https://github.com/astral-sh/ruff-pre-commit
|
| 11 |
rev: v0.6.4
|
| 12 |
hooks:
|
| 13 |
- id: ruff-format
|
|
|
|
| 14 |
- id: ruff
|
| 15 |
args: [--fix, --ignore=E402]
|
|
|
|
| 16 |
|
| 17 |
|
| 18 |
- repo: https://github.com/mgedmin/check-manifest
|
|
@@ -20,3 +25,4 @@ repos:
|
|
| 20 |
hooks:
|
| 21 |
- id: check-manifest
|
| 22 |
stages: [manual]
|
|
|
|
|
|
| 3 |
rev: v5.0.0
|
| 4 |
hooks:
|
| 5 |
- id: trailing-whitespace
|
| 6 |
+
exclude: ^lightrag/api/webui/
|
| 7 |
- id: end-of-file-fixer
|
| 8 |
+
exclude: ^lightrag/api/webui/
|
| 9 |
- id: requirements-txt-fixer
|
| 10 |
+
exclude: ^lightrag/api/webui/
|
| 11 |
|
| 12 |
|
| 13 |
- repo: https://github.com/astral-sh/ruff-pre-commit
|
| 14 |
rev: v0.6.4
|
| 15 |
hooks:
|
| 16 |
- id: ruff-format
|
| 17 |
+
exclude: ^lightrag/api/webui/
|
| 18 |
- id: ruff
|
| 19 |
args: [--fix, --ignore=E402]
|
| 20 |
+
exclude: ^lightrag/api/webui/
|
| 21 |
|
| 22 |
|
| 23 |
- repo: https://github.com/mgedmin/check-manifest
|
|
|
|
| 25 |
hooks:
|
| 26 |
- id: check-manifest
|
| 27 |
stages: [manual]
|
| 28 |
+
exclude: ^lightrag/api/webui/
|