Summary
human_size() formats most sizes with a thousands separator (1,023.5 MB), but the bytes branch doesn't: 5000 shows as 5000 B instead of 5,000 B. Small consistency fix, and human_size has no test yet, so this is a nice spot to add the first one.
Where
src/sifty/console.py, the human_size() function. The B case uses f"{int(value)} B".
Acceptance criteria
Tip
f"{int(value):,} B" does the formatting. Add the test to tests/ (a new test_console.py is fine).
Summary
human_size()formats most sizes with a thousands separator (1,023.5 MB), but the bytes branch doesn't:5000shows as5000 Binstead of5,000 B. Small consistency fix, andhuman_sizehas no test yet, so this is a nice spot to add the first one.Where
src/sifty/console.py, thehuman_size()function. TheBcase usesf"{int(value)} B".Acceptance criteria
5,000 B)pytestgreenTip
f"{int(value):,} B"does the formatting. Add the test totests/(a newtest_console.pyis fine).