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 5241536 commit f816fd1Copy full SHA for f816fd1
python/egglog/pretty.py
@@ -23,8 +23,8 @@
23
"pretty_callable_ref",
24
"pretty_decl",
25
]
26
-MAX_LINE_LENGTH = 80
27
-LINE_DIFFERENCE = 0
+MAX_LINE_LENGTH = 110
+LINE_DIFFERENCE = 10
28
BLACK_MODE = black.Mode(line_length=180)
29
30
# Use this special character in place of the args, so that if the args are inlined
@@ -227,7 +227,7 @@ def __call__(
227
# it would take up is > than some constant (~ line length).
228
line_diff: int = len(expr) - LINE_DIFFERENCE
229
n_parents = self.parents[decl]
230
- if n_parents > 1 and line_diff > 10:
+ if n_parents > 1 and n_parents * line_diff > MAX_LINE_LENGTH:
231
self.names[decl] = expr_name = self._name_expr(tp_name, expr, copy_identifier=False)
232
return expr_name
233
return expr
0 commit comments