Changed
- Switched to AST-based Python parsing: Replaced regex-based string extraction with Python's
astmodule.- Improved Robustness: Eliminated edge cases where comments or non-assignment strings were incorrectly formatted.
- Enhanced F-string support: More reliable parsing of SQL within f-strings.
- False Positive Prevention: Correctly ignores SQL-like text in docstrings and comments, which were previously matched by the regex.
- Strict Targeting: Only formats strings that are actual variable assignments.
- Modernized File Handling: Adopted
pathlibfor all file system operations. - Type Safety: Added comprehensive type hints to the codebase.
What's Changed
Full Changelog: v1.0.0...v1.1.0