We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0112ae5 commit 53b2086Copy full SHA for 53b2086
1 file changed
python/sqlformat.py
@@ -11,6 +11,7 @@
11
# copies or substantial portions of the Software.
12
# File: python/sqlformat.py
13
14
+"""SQL formatting module for Neovim plugin."""
15
from typing import Optional, Union, cast
16
17
import sqlparse
@@ -49,13 +50,16 @@ def format_sql(
49
50
raise ValueError("Line width must be a positive integer")
51
52
# Format the SQL
- 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
- ))
+ formatted = cast(
+ str,
+ sqlparse.format(
+ sql,
+ reindent=True,
+ indent_width=indent,
59
+ keyword_case=keyword_case,
60
+ wrap_after=line_width,
61
+ ),
62
+ )
63
64
vim.command('echo "SQL formatting complete"')
65
return formatted
0 commit comments