From e0def9ef95dfdc76e369e5992a3e5cb795d6b175 Mon Sep 17 00:00:00 2001 From: Zanie Date: Thu, 26 Oct 2023 16:35:21 -0500 Subject: [PATCH] Truncate more aggressively --- python/ruff-ecosystem/ruff_ecosystem/check.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/python/ruff-ecosystem/ruff_ecosystem/check.py b/python/ruff-ecosystem/ruff_ecosystem/check.py index d68a3323de..ff94ff1258 100644 --- a/python/ruff-ecosystem/ruff_ecosystem/check.py +++ b/python/ruff-ecosystem/ruff_ecosystem/check.py @@ -82,12 +82,12 @@ def markdown_check_result(result: Result) -> str: ) lines.append("") - # Limit the number of items displayed per rule to between 5 and 200 + # Limit the number of items displayed per rule to between 5 and 50 max_display_per_rule = max( 5, # Calculate the number of affected rules that we would display to increase # the maximum if there are less rules affected - 200 // total_affected_rules, + 50 // total_affected_rules, ) # Display per project changes @@ -119,9 +119,9 @@ def markdown_check_result(result: Result) -> str: + project_removed_fixes ) - # Limit the number of items displayed per project to between 10 and 200 + # Limit the number of items displayed per project to between 10 and 50 # based on the number of total changes present in this project - max_project_lines = max(10, int((project_changes / total_changes) * 200)) + max_project_lines = max(10, int((project_changes / total_changes) * 50)) # Display the diff displayed_per_rule = Counter()