Run black on validation, lazy-load _pytest.assertion so that it isn't a hard dependency for non-express rule validation.

This commit is contained in:
Dion Moult
2023-01-05 20:54:17 +11:00
parent 9208781b8f
commit 839a00c2a8
3 changed files with 74 additions and 84 deletions
@@ -78,7 +78,7 @@ class ValidateIfcFile(bpy.types.Operator):
logger = logging.getLogger("validate")
logger.setLevel(logging.DEBUG)
ifcopenshell.validate.validate(IfcStore.get_file(), logger)
ifcopenshell.validate.validate(IfcStore.get_file(), logger, express_rules=True)
return {"FINISHED"}