commit-ai-guardian 0.2.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- commit_ai_guardian/__init__.py +12 -0
- commit_ai_guardian/__main__.py +6 -0
- commit_ai_guardian/ai_engine.py +2047 -0
- commit_ai_guardian/case_loader.py +417 -0
- commit_ai_guardian/case_validator.py +159 -0
- commit_ai_guardian/cli.py +718 -0
- commit_ai_guardian/config.py +372 -0
- commit_ai_guardian/diff_collector.py +362 -0
- commit_ai_guardian/file_collector.py +327 -0
- commit_ai_guardian/hook_installer.py +680 -0
- commit_ai_guardian/prompt_loader.py +312 -0
- commit_ai_guardian/result_formatter.py +381 -0
- commit_ai_guardian/templates/examples/js/mongoose-query-acceptable.md +81 -0
- commit_ai_guardian/templates/examples/js/redundant-null-union.md +71 -0
- commit_ai_guardian/templates/examples/js/vue-default-slot-redundant.md +44 -0
- commit_ai_guardian/templates/examples/js/vxe-size-redundant.md +88 -0
- commit_ai_guardian/templates/pre-commit-hook-template +39 -0
- commit_ai_guardian/utils.py +87 -0
- commit_ai_guardian-0.2.0.dist-info/METADATA +364 -0
- commit_ai_guardian-0.2.0.dist-info/RECORD +22 -0
- commit_ai_guardian-0.2.0.dist-info/WHEEL +4 -0
- commit_ai_guardian-0.2.0.dist-info/entry_points.txt +3 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"""Commit AI Guardian - Git Pre-commit AI 代码审核工具
|
|
2
|
+
|
|
3
|
+
使用方式:
|
|
4
|
+
方式一(自动):install → git commit 时自动触发审核
|
|
5
|
+
方式二(手动):review -f file.py / -d src/ 审核指定文件
|
|
6
|
+
|
|
7
|
+
主入口:cli.py 的 main() 函数
|
|
8
|
+
"""
|
|
9
|
+
|
|
10
|
+
__version__ = "0.1.0"
|
|
11
|
+
__author__ = "Commit AI Guardian"
|
|
12
|
+
__description__ = "在 Git commit 前自动触发 AI 代码审核"
|