Skip to content

Commit f816fd1

Browse files
Revert pretty changes back to preserve snapshots
1 parent 5241536 commit f816fd1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

python/egglog/pretty.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
"pretty_callable_ref",
2424
"pretty_decl",
2525
]
26-
MAX_LINE_LENGTH = 80
27-
LINE_DIFFERENCE = 0
26+
MAX_LINE_LENGTH = 110
27+
LINE_DIFFERENCE = 10
2828
BLACK_MODE = black.Mode(line_length=180)
2929

3030
# Use this special character in place of the args, so that if the args are inlined
@@ -227,7 +227,7 @@ def __call__(
227227
# it would take up is > than some constant (~ line length).
228228
line_diff: int = len(expr) - LINE_DIFFERENCE
229229
n_parents = self.parents[decl]
230-
if n_parents > 1 and line_diff > 10:
230+
if n_parents > 1 and n_parents * line_diff > MAX_LINE_LENGTH:
231231
self.names[decl] = expr_name = self._name_expr(tp_name, expr, copy_identifier=False)
232232
return expr_name
233233
return expr

0 commit comments

Comments
 (0)