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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: git-analytics-cli
3
- Version: 0.1.2
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
 
@@ -134,9 +134,9 @@ GitStats 告诉你一个仓库发生了什么;Git Analytics 告诉你你是一
134
134
  ## 技术栈
135
135
 
136
136
  - Python 3.8+
137
- - 零运行时依赖(纯标准库)
137
+ - Pillow(分享卡片 PNG 生成)
138
138
  - Chart.js 可视化报告
139
- - 本地运行
139
+ - 本地运行,不上传任何数据
140
140
 
141
141
  ## License
142
142
 
@@ -376,14 +376,14 @@ def analyze_habits(all_repos):
376
376
  # 计算 Developer Habit Score
377
377
  # ============================================================
378
378
 
379
- # 1. 提交粒度得分 (30分)
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(30, avg_commits_per_day / 4.5 * 30))
382
+ granularity_score = round(min(40, avg_commits_per_day / 4.5 * 40))
383
383
 
384
- # 2. 测试意识得分 (20分)
384
+ # 2. 测试意识得分 (10分)
385
385
  test_ratio = total_test_files / max(total_file_changes, 1)
386
- test_score = round(min(20, test_ratio / 0.15 * 20))
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.2
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.2"
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"