Repository navigation
Conversation
jay23606
marked this pull request as ready for review
November 21, 2026 00:38
codepiyusss
requested changes
Nov 21, 2026
codepiyusss
left a comment
Owner
There was a problem hiding this comment.
@jay23606, please close this PR and open another one because this PR currently has merge conflicts and is failing CI workflow checks.
Before resubmitting, sync/rebase your branch onto the latest base branch (or merge the latest base branch into your feature branch), resolve all conflicts, then run the test suite locally and push the corrected branch. A freshly opened PR is preferable so the workflows run on a clean, up-to-date branch.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #94
What
Adds a
hashsubcommand,fixit hash TEXT [--algo {md5,sha1,sha256}], which prints the hex digest of the text (UTF-8 encoded). The default algorithm issha256;--algois limited with argparsechoices.fixit/hashing.py(new):hash_text(text, algo="sha256")returns the digest as a string and raisesValueErrorfor an unsupported algorithm. It does not print.fixit/cli.py:run_hashhandler,hashentry inCOMMAND_TABLE, and the subparser inbuild_parser.tests/test_hashing.py(new): md5 ofhelloequals5d41402abc4b2a76b9719d911017c592; sha256 is the default; md5 of the empty string; unsupported algorithm raises; the CLI prints the default and md5 digests; the CLI rejects an unknown--algo.Testing
python -m pytest tests/test_hashing.py -q: 7 passed.python -m pytest -q: 131 passed.Regression test: untested: a small feature has no test that fails before the change
Fixes #94