From 129132dd3a7eb4646d7ec4972999827e4c6e6db1 Mon Sep 17 00:00:00 2001 From: Jonathon Broughton <760691+jsdbroughton@users.noreply.github.com> Date: Mon, 12 May 2025 15:53:33 +0100 Subject: [PATCH] Fixes (#63) * Improves rule number handling Adds a fallback mechanism for retrieving rule numbers. This ensures the system can handle cases where the primary "Rule Number" field is missing or empty, defaulting to "Rule #" to maintain data integrity. Also corrects some docstring formatting. * Improves rule processing efficiency Avoids unnecessary rule processing by checking rule severity against the minimum configured severity level. Also ensures that results are only attached to failed objects if they exist and meet the minimum severity criteria. Addresses a potential issue where rules with no "Report Severity" column could cause errors, by considering an alternative "Severity" column. * Adds Python compatibility inspection Ensures that the project is compatible with Python 3 by adding a compatibility inspection setting. This will help to identify and address any potential compatibility issues early on. * Updates integration test URL and severity. Updates the default URL used in the integration test to a new speckle model checker endpoint. Changes the minimum severity level from warning to info, increasing the detail of reported results. --- .idea/misc.xml | 3 +++ src/rule_processor.py | 18 ++++++++++++------ src/spreadsheet.py | 12 ++++++------ tests/test_function.py | 6 ++++-- 4 files changed, 25 insertions(+), 14 deletions(-) diff --git a/.idea/misc.xml b/.idea/misc.xml index 379246e..676b787 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -4,4 +4,7 @@