git-analytics-cli 0.1.2__tar.gz → 0.1.3__tar.gz
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.
- {git_analytics_cli-0.1.2/git_analytics_cli.egg-info → git_analytics_cli-0.1.3}/PKG-INFO +3 -3
- {git_analytics_cli-0.1.2 → git_analytics_cli-0.1.3}/README.md +2 -2
- {git_analytics_cli-0.1.2 → git_analytics_cli-0.1.3}/git_analytics.py +4 -4
- {git_analytics_cli-0.1.2 → git_analytics_cli-0.1.3/git_analytics_cli.egg-info}/PKG-INFO +3 -3
- {git_analytics_cli-0.1.2 → git_analytics_cli-0.1.3}/pyproject.toml +1 -1
- {git_analytics_cli-0.1.2 → git_analytics_cli-0.1.3}/LICENSE +0 -0
- {git_analytics_cli-0.1.2 → git_analytics_cli-0.1.3}/MANIFEST.in +0 -0
- {git_analytics_cli-0.1.2 → git_analytics_cli-0.1.3}/gen_share_card.py +0 -0
- {git_analytics_cli-0.1.2 → git_analytics_cli-0.1.3}/generate_report.py +0 -0
- {git_analytics_cli-0.1.2 → git_analytics_cli-0.1.3}/git_analytics_cli.egg-info/SOURCES.txt +0 -0
- {git_analytics_cli-0.1.2 → git_analytics_cli-0.1.3}/git_analytics_cli.egg-info/dependency_links.txt +0 -0
- {git_analytics_cli-0.1.2 → git_analytics_cli-0.1.3}/git_analytics_cli.egg-info/entry_points.txt +0 -0
- {git_analytics_cli-0.1.2 → git_analytics_cli-0.1.3}/git_analytics_cli.egg-info/requires.txt +0 -0
- {git_analytics_cli-0.1.2 → git_analytics_cli-0.1.3}/git_analytics_cli.egg-info/top_level.txt +0 -0
- {git_analytics_cli-0.1.2 → git_analytics_cli-0.1.3}/run.py +0 -0
- {git_analytics_cli-0.1.2 → git_analytics_cli-0.1.3}/setup.cfg +0 -0
- {git_analytics_cli-0.1.2 → git_analytics_cli-0.1.3}/share-card.html +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: git-analytics-cli
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.3
|
|
4
4
|
Summary: Local-first Git habit analytics — scan your repos, get a developer persona and health report
|
|
5
5
|
Author: Git Analytics Contributors
|
|
6
6
|
License-Expression: MIT
|
|
@@ -161,9 +161,9 @@ GitStats 告诉你一个仓库发生了什么;Git Analytics 告诉你你是一
|
|
|
161
161
|
## 技术栈
|
|
162
162
|
|
|
163
163
|
- Python 3.8+
|
|
164
|
-
-
|
|
164
|
+
- Pillow(分享卡片 PNG 生成)
|
|
165
165
|
- Chart.js 可视化报告
|
|
166
|
-
-
|
|
166
|
+
- 本地运行,不上传任何数据
|
|
167
167
|
|
|
168
168
|
## License
|
|
169
169
|
|
|
@@ -376,14 +376,14 @@ def analyze_habits(all_repos):
|
|
|
376
376
|
# 计算 Developer Habit Score
|
|
377
377
|
# ============================================================
|
|
378
378
|
|
|
379
|
-
# 1. 提交粒度得分 (
|
|
379
|
+
# 1. 提交粒度得分 (40分)
|
|
380
380
|
# 小步快跑 = 高分,大包提交 = 低分,线性插值
|
|
381
381
|
avg_commits_per_day = total_commits / max(sum(r['active_days'] for r in all_repos), 1)
|
|
382
|
-
granularity_score = round(min(
|
|
382
|
+
granularity_score = round(min(40, avg_commits_per_day / 4.5 * 40))
|
|
383
383
|
|
|
384
|
-
# 2. 测试意识得分 (
|
|
384
|
+
# 2. 测试意识得分 (10分)
|
|
385
385
|
test_ratio = total_test_files / max(total_file_changes, 1)
|
|
386
|
-
test_score = round(min(
|
|
386
|
+
test_score = round(min(10, test_ratio / 0.15 * 10))
|
|
387
387
|
|
|
388
388
|
# 3. 文档意识得分 (15分)
|
|
389
389
|
doc_ratio = total_doc_files / max(total_file_changes, 1)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: git-analytics-cli
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.3
|
|
4
4
|
Summary: Local-first Git habit analytics — scan your repos, get a developer persona and health report
|
|
5
5
|
Author: Git Analytics Contributors
|
|
6
6
|
License-Expression: MIT
|
|
@@ -161,9 +161,9 @@ GitStats 告诉你一个仓库发生了什么;Git Analytics 告诉你你是一
|
|
|
161
161
|
## 技术栈
|
|
162
162
|
|
|
163
163
|
- Python 3.8+
|
|
164
|
-
-
|
|
164
|
+
- Pillow(分享卡片 PNG 生成)
|
|
165
165
|
- Chart.js 可视化报告
|
|
166
|
-
-
|
|
166
|
+
- 本地运行,不上传任何数据
|
|
167
167
|
|
|
168
168
|
## License
|
|
169
169
|
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "git-analytics-cli"
|
|
7
|
-
version = "0.1.
|
|
7
|
+
version = "0.1.3"
|
|
8
8
|
description = "Local-first Git habit analytics — scan your repos, get a developer persona and health report"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.8"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{git_analytics_cli-0.1.2 → git_analytics_cli-0.1.3}/git_analytics_cli.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{git_analytics_cli-0.1.2 → git_analytics_cli-0.1.3}/git_analytics_cli.egg-info/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|
{git_analytics_cli-0.1.2 → git_analytics_cli-0.1.3}/git_analytics_cli.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|