• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tomerfiliba / plumbum / 29888256867
88%

Build:
DEFAULT BRANCH: master
Ran 22 Jul 2026 03:22AM UTC
Jobs 15
Files 46
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

22 Jul 2026 03:21AM UTC coverage: 87.726% (+0.2%) from 87.478%
29888256867

push

github

web-flow
fix(cli): correct several CLI parsing and terminal bugs (#824)

* fix: correct several CLI parsing and terminal bugs

Fixes a batch of bugs in plumbum/cli/:

- switches.py Set._call_iter: add a `return` after the CSV split loop so the
  whole unsplit string is no longer also validated (CSV("a,b") now yields
  ['a','b'] instead of ['a','b','a,b']).
- switches.py Set: case-insensitive matching now yields the configured
  (canonical) spelling instead of the lowercased user input, so
  Set("TCP","UDP")("tcp") returns "TCP". BEHAVIOR CHANGE for existing
  case-insensitive Sets.
- application.py: an exact switch name now always wins over abbreviation, so
  with --foo and --foobar defined, --foo is no longer rejected as ambiguous.
- application.py: a no-argument switch given --flag=value now raises a clear
  SwitchError instead of leaking '=value' into positional args.
- application.py helpall: no longer mutates the shared SwitchInfo objects when
  demoting meta-switches; the regrouping is now local to the render via a
  transient _hide_meta_switches flag, so subsequent --help output is unaffected.
- application.py _validate_args: unknown names in requires=/excludes= now raise
  a clear SwitchError naming the offending switch instead of a bare KeyError.
- terminal.py: readline() now raises EOFError at end-of-file; ask/choose/prompt
  fall back to their default on EOF or re-raise when there is none, fixing an
  infinite loop on closed/exhausted stdin.
- image.py best_aspect: fix inverted aspect math so a wide image renders wide
  and a tall image renders tall within the terminal box.

Adds regression tests for each fix.

Refs #820

Assisted-by: ClaudeCode:claude-opus-4.8

* Apply suggestions from code review

Co-authored-by: Henry Schreiner <HenrySchreinerIII@gmail.com>

* refactor: drop Set canonical-spelling change (moved to #835)

The case-insensitive canonical-spelling behavior change moved to its own
PR (#835) so this PR stays bug-fixes-only. The CSV ret... (continued)

1359 of 1805 branches covered (75.29%)

39 of 40 new or added lines in 4 files covered. (97.5%)

1 existing line in 1 file now uncovered.

5582 of 6363 relevant lines covered (87.73%)

12.45 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
89.85
0.02% plumbum/cli/application.py

Coverage Regressions

Lines Coverage ∆ File
1
95.49
5.17% plumbum/cli/terminal.py
Jobs
ID Job ID Ran Files Coverage
1 test-ubuntu-latest-3.15 - 29888256867.1 22 Jul 2026 03:25AM UTC 46
86.21
GitHub Action Run
2 test-windows-latest-3.11 - 29888256867.2 22 Jul 2026 03:25AM UTC 46
70.78
GitHub Action Run
3 test-ubuntu-latest-pypy-3.11 - 29888256867.3 22 Jul 2026 03:25AM UTC 46
86.14
GitHub Action Run
4 test-macos-latest-3.14 - 29888256867.4 22 Jul 2026 03:25AM UTC 46
86.0
GitHub Action Run
5 test-macos-latest-3.9 - 29888256867.5 22 Jul 2026 03:25AM UTC 46
86.0
GitHub Action Run
6 test-ubuntu-latest-3.14 - 29888256867.6 22 Jul 2026 03:25AM UTC 46
86.21
GitHub Action Run
7 test-macos-latest-3.11 - 29888256867.7 22 Jul 2026 03:25AM UTC 46
86.02
GitHub Action Run
8 test-ubuntu-latest-3.13 - 29888256867.8 22 Jul 2026 03:25AM UTC 46
86.21
GitHub Action Run
9 test-macos-latest-3.15 - 29888256867.9 22 Jul 2026 03:25AM UTC 46
86.0
GitHub Action Run
10 test-ubuntu-latest-3.12 - 29888256867.10 22 Jul 2026 03:25AM UTC 46
86.24
GitHub Action Run
11 test-ubuntu-latest-3.10 - 29888256867.11 22 Jul 2026 03:25AM UTC 46
86.24
GitHub Action Run
12 test-ubuntu-latest-3.9 - 29888256867.12 22 Jul 2026 03:25AM UTC 46
86.2
GitHub Action Run
13 test-ubuntu-latest-3.11 - 29888256867.13 22 Jul 2026 03:25AM UTC 46
86.03
GitHub Action Run
14 test-windows-latest-3.9 - 29888256867.14 22 Jul 2026 03:25AM UTC 46
70.75
GitHub Action Run
15 test-windows-latest-3.14 - 29888256867.15 22 Jul 2026 03:25AM UTC 46
70.6
GitHub Action Run
Source Files on build 29888256867
  • Tree
  • List 46
  • Changed 6
  • Source Changed 0
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 2273e0ae on github
  • Prev Build on master (#29888045439)
  • Next Build on master (#29890026067)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc