astral-sh / uv

An extremely fast Python package installer and resolver, written in Rust.
https://astral.sh/
Apache License 2.0
15.28k stars 444 forks source link

Download bars do not use the full 80 character width #4858

Open zanieb opened 2 weeks ago

zanieb commented 2 weeks ago

e.g. in

jsonpatch  ------------------------------     0 B/12.90 kB
annotated-types ------------------------------     0 B/13.64 kB
aiosqlite  ------------------------------     0 B/15.56 kB
itsdangerous ------------------------------     0 B/16.23 kB
toml       ------------------------------     0 B/16.59 kB
requests   ------------------------------ 48.01 kB/64.93 kB
idna       ------------------------------ 50.66 kB/66.84 kB
python-dateutil ------------------------------ 193.45 kB/229.89 kB
alembic    ------------------------------ 188.19 kB/232.99 kB
rich       ------------------------------ 180.22 kB/240.68 kB
orjson     ------------------------------ 196.61 kB/250.63 kB
greenlet   ------------------------------ 212.99 kB/273.08 kB
regex      ------------------------------ 212.99 kB/278.54 kB

we allocate some space for the package names for alignment but we're only at 67 total characters in the longest line — we should probably make use of at least some of the remaining 13 characters of space for package names to keep things aligned more often.

charliermarsh commented 1 week ago

Do you mean 80 here as in a conventional limit? Or does 80 have other significance?

zanieb commented 1 week ago

Here I'm just referring to 80 as the conventional terminal width, yep.