v0.9.2
- Make hatch a prerequisite (#259). In this commit, Eric Vergnaud has introduced a change to make the installation of
hatchversion 1.9.4 a prerequisite for the project to avoid errors related topipcommand recognition. The Makefile has been updated to handle the installation of hatch automatically, and thehatch env createcommand is now used instead ofpip install hatch==1.7.0. This change ensures that the development environment is consistent and reliable by maintaining the correct version of hatch and automatically handling its installation. Additionally, the.venv/bin/pythonanddevtargets have been updated accordingly to reflect these changes. This commit also formats all files using themake dev fmtcommand, which helps maintain consistent code formatting throughout the project. - add support for exclusions in
fmtcommand (#263). In this release, we have added support for exclusions to thefmtcommand in the 'databricks/labs/lsql/cli.py' module. This feature allows users to specify a list of directories or files to exclude while formatting SQL files, which is particularly useful when verifying SQL notebooks in ucx. Thefmtcommand now accepts a new optional parameter 'exclude', which accepts an iterable of strings that specify the relative paths to exclude. Anysql_filethat is a descendant of anyexclusionis skipped during formatting. The exclusions are implemented by converting the relative paths intoPathobjects. This change addresses the issue where single line comments are converted into inlined comments, causing misinterpretation. The added unit test is manually verified, and this pull request fixes issue #261. This feature was authored and co-authored by Eric Vergnaud.
Contributors: @ericvergnaud