Skip to content

v1.1.0

Latest

Choose a tag to compare

@AzisK AzisK released this 21 Jan 23:46
· 2 commits to main since this release
c7ba418

Changed

  • Switched to AST-based Python parsing: Replaced regex-based string extraction with Python's ast module.
    • 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 pathlib for all file system operations.
  • Type Safety: Added comprehensive type hints to the codebase.

What's Changed

  • Switch python parsing to ast by @AzisK in #3

Full Changelog: v1.0.0...v1.1.0