File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change 1111# copies or substantial portions of the Software.
1212# File: python/sqlformat.py
1313
14+ """SQL formatting module for Neovim plugin."""
1415from typing import Optional , Union , cast
1516
1617import sqlparse
@@ -49,13 +50,16 @@ def format_sql(
4950 raise ValueError ("Line width must be a positive integer" )
5051
5152 # Format the SQL
52- formatted = cast (str , sqlparse .format (
53- sql ,
54- reindent = True ,
55- indent_width = indent ,
56- keyword_case = keyword_case ,
57- wrap_after = line_width ,
58- ))
53+ formatted = cast (
54+ str ,
55+ sqlparse .format (
56+ sql ,
57+ reindent = True ,
58+ indent_width = indent ,
59+ keyword_case = keyword_case ,
60+ wrap_after = line_width ,
61+ ),
62+ )
5963
6064 vim .command ('echo "SQL formatting complete"' )
6165 return formatted
You can’t perform that action at this time.
0 commit comments