Open Issues Need Help
View All on GitHubAI Summary: Implement an auto-fix feature for the PyWard linter to automatically remove unused variables from Python code when the `--fix` flag is used. The implementation must handle various assignment scenarios, including simple assignments, multiple assignments, unpacking, and function arguments, while ensuring that no valid code is broken. Thorough unit testing is required to verify the correctness of the auto-fix functionality.
AI Summary: Add a command-line argument (`--version` or similar) to the PyWard CLI that prints the current version number and then exits the program. This requires modifying the argument parsing and adding version information retrieval.
AI Summary: The task is to debug and fix a bug in the PyWard linter's `--fix` functionality for unused imports. Currently, when removing unused imports from a `from` clause, the entire clause is removed instead of just the unused imports. The fix should selectively remove only the unused imports, leaving the remaining imports intact. The error handling needs improvement to prevent crashes when encountering invalid syntax during the fix process.