Whole file

MarcoGorelli/auto-walrus

The author described this change as Require paths (would crash with `commonpath() arg is an empty sequence` otherwise). It counts as a record because the check below fails on the code as it stood at 2eec88b31 and passes on f391a9239, with nothing else changed between the two runs.

Fix saved2026-02-02
Sharing licenceMIT · LICENSE
Change size+1 1

What the code was meant to do, written into the code itself as a save note

Require paths (would crash with `commonpath() arg is an empty sequence` otherwise)

The change

348348
349349 def main(argv: Sequence[str] | None = None) -> int: # pragma: no cover
350350 parser = argparse.ArgumentParser()
351- parser.add_argument("paths", nargs="*")
351+ parser.add_argument("paths", nargs="+", metavar="path")
352352 parser.add_argument(
353353 "--files",
354354 help="Regex pattern with which to match files to include",

The check that tells the two apart

failpass·tests/main_test.py::test_complains_when_no_paths

Check file tests/main_test.py, taken without changes from the fix and copied onto the older code, so the exact same check runs against both versions.

Origin and history

The code before it2eec88b31691527ef1d7f0e9400e1484fa8932b8
Broken version dated2026-02-01
Moduleauto_walrus
Units changedmain
Fingerprint9d57af79b80007d2
Checked2026-08-18 by goldset/0.1

Every field above is generated by our program. None of it is written by hand.

Other bugs found in MarcoGorelli/auto-walrus