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 11
11
# copies or substantial portions of the Software.
12
12
# File: python/sqlformat.py
13
13
14
+ """SQL formatting module for Neovim plugin."""
14
15
from typing import Optional , Union , cast
15
16
16
17
import sqlparse
@@ -49,13 +50,16 @@ def format_sql(
49
50
raise ValueError ("Line width must be a positive integer" )
50
51
51
52
# 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
+ )
59
63
60
64
vim .command ('echo "SQL formatting complete"' )
61
65
return formatted
You can’t perform that action at this time.
0 commit comments