Remove deprecated --no-txt argument and apply code formatting #2686
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.
Description
This PR removes the deprecated
--no-txt
command line argument as indicated by the TODO comment in the code, and applies some code formatting improvements.Changes Made
--no-txt
argument and related code (10 lines removed)--txt
flagTesting
--txt
flag still works correctly--no-txt
flag is properly rejectedNote on Test Results: 4 tests fail due to environment setup (tests expect global
sherlock
command but we're using virtual environment). These failures are not related to the code changes - they're infrastructure/environment issues where tests try to runsherlock
command directly but it's not in PATH. The failing tests are intest_ux.py
andtest_version.py
and relate to command execution, not the argument parsing changes made in this PR.Type of Change
Checklist
Related Issues
Addresses the TODO comment in
sherlock_project/sherlock.py
line 678 about removing deprecated--no-txt
functionality.Impact
--txt
flag continues to work exactly as beforeHacktoberfest Contribution 🎃