Commit Graph

4 Commits

Author SHA1 Message Date
593283d240 devstats: rename html.py, it shadowed stdlib
Some checks are pending
file length / file-length (push) Waiting to run
kuhy_credit drift / drift (push) Waiting to run
md-naming / markdown naming convention (push) Waiting to run
palette drift / palette (push) Waiting to run
repo-contract / repo contract (push) Waiting to run
shared gate tests / gate unit tests (push) Waiting to run
Bug-class-check: devstats/tests/test_no_stdlib_shadow.py

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-11-27 19:20:52 +01:00
f370d313b5 devstats: run.sh, HTML report, origin refs
Some checks are pending
file length / file-length (push) Waiting to run
kuhy_credit drift / drift (push) Waiting to run
md-naming / markdown naming convention (push) Waiting to run
palette drift / palette (push) Waiting to run
repo-contract / repo contract (push) Waiting to run
shared gate tests / gate unit tests (push) Waiting to run
devstats/run.sh installs python3/git via pacman when missing, refuses
python < 3.11, runs `compare` (capped when capped.sh exists), prints the
tables, writes ~/data/devstats/report.html (bar chart above the tables)
and opens it unless --no-open.

The local default branch is now logged together with its origin/
tracking ref (union, each SHA once), so the 16 "behind its upstream
tracking ref" warnings are gone without pulling any checkout.

Bug-class-check: devstats/tests/test_refs.py
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 13:32:40 +01:00
2f7e87c10e devstats: local refs only, keep source in data dirs
Some checks are pending
file length / file-length (push) Waiting to run
kuhy_credit drift / drift (push) Waiting to run
md-naming / markdown naming convention (push) Waiting to run
palette drift / palette (push) Waiting to run
repo-contract / repo contract (push) Waiting to run
shared gate tests / gate unit tests (push) Waiting to run
Count only the local default branch, as the spec's stale-ref answer
asks (origin/ only names the branch and drives the "behind" warning).
Source files under data/, assets/ and fixtures/ (lib/data/*.dart) now
count as code; vendored and build dirs still drop everything.
Regenerated DOCS-comparison.md.

Bug-class-check: devstats/tests/test_excludes.py (code-under-data-dir cases)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 12:23:38 +01:00
6e5b5d1c3a Add devstats: kuhy vs the 100x article
`python -m devstats compare` walks ~/src, counts kuhy's default-branch
commits once per piece of work (worktrees, clones and filter-repo copies
folded in), drops lockfiles/generated/vendored/data via excludes.py, and
prints 30/90/300-day net LoC/day, per-active-day vs 194, commits and
tags beside the article's Cmdr figures. --write regenerates
devstats/DOCS-comparison.md (aggregates only); --by-repo is terminal-only.
Read-only: only rev-parse, for-each-ref and log, GIT_OPTIONAL_LOCKS=0.

Bug-class-check: none — new tool, not a bug fix
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 12:18:05 +01:00