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
@@ -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()]