Skip to content

Commit bb23505

Browse files
committed
indentation_kit.py: adjust limit for ratio_most_common
1 parent 844a5d3 commit bb23505

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/text_manipulation/indentation_kit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ def calc_space_count_for_indent(indent_lengths: Sequence[int]) -> int:
235235
deltas = sorted([b - a for a, b in zip(unique_space_counts, unique_space_counts[1:])], reverse=True)
236236
most_common_deltas = Counter(deltas).most_common(5)
237237
ratio_most_common = most_common_deltas[0][1] / len(deltas)
238-
if ratio_most_common > .6:
238+
if ratio_most_common > .5:
239239
return most_common_deltas[0][0]
240240

241241
# Resort to GCD

0 commit comments

Comments
 (0)