mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-12 02:23:34 +00:00
Run black, and add black to a "qa" target to make it a standardised process.
This commit is contained in:
@@ -26,6 +26,7 @@ def get_subtypes(entity):
|
||||
for subtype in declaration.subtypes():
|
||||
results.extend(get_classes(subtype))
|
||||
return results
|
||||
|
||||
return get_classes(entity)
|
||||
|
||||
|
||||
@@ -47,7 +48,6 @@ def reassign_class(ifc_file, element, new_class):
|
||||
return new_element
|
||||
|
||||
|
||||
|
||||
class Migrator:
|
||||
def __init__(self):
|
||||
self.migrated_ids = {}
|
||||
@@ -213,7 +213,7 @@ class Migrator:
|
||||
"TheOrganization": new_file.create_entity(
|
||||
"IfcOrganization", **{"Name": "IfcOpenShell Migrator"}
|
||||
),
|
||||
}
|
||||
},
|
||||
),
|
||||
"OwningApplication": new_file.create_entity(
|
||||
"IfcApplication",
|
||||
@@ -224,10 +224,10 @@ class Migrator:
|
||||
"Version": "Works for me",
|
||||
"ApplicationFullName": "IfcOpenShell Migrator",
|
||||
"ApplicationIdentifier": "IfcOpenShell Migrator",
|
||||
}
|
||||
},
|
||||
),
|
||||
"ChangeAction": "NOCHANGE",
|
||||
"CreationDate": int(time.time()),
|
||||
}
|
||||
},
|
||||
)
|
||||
return self.default_entities[attribute.name()]
|
||||
|
||||
Reference in New Issue
Block a user