Skip to content

Commit f2d6bd8

Browse files
committed
fix:Fix code formatting to comply with ruff style guide
1 parent a6122c4 commit f2d6bd8

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

pgcli/main.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -208,10 +208,7 @@ def __init__(
208208
self.output_file = None
209209
self.pgspecial = PGSpecial()
210210

211-
self.hide_named_query_text = (
212-
"hide_named_query_text" in c["main"]
213-
and c["main"].as_bool("hide_named_query_text")
214-
)
211+
self.hide_named_query_text = "hide_named_query_text" in c["main"] and c["main"].as_bool("hide_named_query_text")
215212
self.explain_mode = False
216213
self.multi_line = c["main"].as_bool("multi_line")
217214
self.multiline_mode = c["main"].get("multi_line_mode", "psql")
@@ -321,11 +318,7 @@ def toggle_named_query_quiet(self):
321318
def _is_named_query_execution(self, text):
322319
"""Check if the command is a named query execution (\n <name>)."""
323320
text = text.strip()
324-
return (
325-
text.startswith("\\n ")
326-
and not text.startswith("\\ns ")
327-
and not text.startswith("\\nd ")
328-
)
321+
return text.startswith("\\n ") and not text.startswith("\\ns ") and not text.startswith("\\nd ")
329322

330323
def register_special_commands(self):
331324
self.pgspecial.register(

0 commit comments

Comments
 (0)