Skip to content

Commit efcad8b

Browse files
committed
fix(core): 🐛 enable skipping of Python checks
1 parent 9141a72 commit efcad8b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

rocrate_validator/requirements/python/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ def __init__(self,
5555
self._check_function = check_function
5656

5757
def execute_check(self, context: ValidationContext) -> bool:
58+
if self.requirement.profile.identifier != context.profile_identifier and \
59+
context.settings.disable_inherited_profiles_issue_reporting:
60+
logger.debug("Skipping requirement %s as it belongs to an inherited profile %s",
61+
self.requirement.identifier, self.requirement.profile.identifier)
62+
return True
5863
return self._check_function(self, context)
5964

6065

0 commit comments

Comments
 (0)