Run black, and add black to a "qa" target to make it a standardised process.

This commit is contained in:
Dion Moult
2021-09-09 21:27:23 +10:00
parent 95903c965d
commit 865c0f4895
305 changed files with 1968 additions and 1143 deletions
@@ -1,5 +1,6 @@
import ifcopenshell
class Usecase:
def __init__(self, file, **settings):
self.file = file
@@ -9,6 +10,4 @@ class Usecase:
def execute(self):
id_attribute = "ItemReference" if self.file.schema == "IFC2X3" else "Identification"
return self.file.create_entity("IfcDocumentReference", **{
id_attribute: ifcopenshell.guid.new()
})
return self.file.create_entity("IfcDocumentReference", **{id_attribute: ifcopenshell.guid.new()})