diff --git a/pyproject.toml b/pyproject.toml index 5642531ba8..e3f82db534 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -48,6 +48,7 @@ select = [ "FA", # future annotations "UP", # pyupgrade "RUF015", # next() > list_comprehension[0] + "RUF022", # sort __all__ ] ignore = [ "FA100", # Conflicts with Blender using annotations for props definitions. diff --git a/src/bcf/bcf/v2/model/__init__.py b/src/bcf/bcf/v2/model/__init__.py index 3bb55fd922..fa66907968 100644 --- a/src/bcf/bcf/v2/model/__init__.py +++ b/src/bcf/bcf/v2/model/__init__.py @@ -36,20 +36,10 @@ from bcf.v2.model.visinfo import ( __all__ = [ "BimSnippet", - "Comment", - "CommentViewpoint", - "Header", - "HeaderFile", - "Markup", - "Topic", - "TopicDocumentReference", - "TopicRelatedTopic", - "ViewPoint", - "Project", - "ProjectExtension", - "Version", "BitmapFormat", "ClippingPlane", + "Comment", + "CommentViewpoint", "Component", "ComponentColoring", "ComponentColoringColor", @@ -58,10 +48,20 @@ __all__ = [ "ComponentVisibilityExceptions", "Components", "Direction", + "Header", + "HeaderFile", "Line", + "Markup", "OrthogonalCamera", "PerspectiveCamera", "Point", + "Project", + "ProjectExtension", + "Topic", + "TopicDocumentReference", + "TopicRelatedTopic", + "Version", + "ViewPoint", "ViewSetupHints", "VisualizationInfo", "VisualizationInfoBitmap", diff --git a/src/bcf/bcf/v3/model/__init__.py b/src/bcf/bcf/v3/model/__init__.py index ed74e66dcc..7ccfa02d0b 100644 --- a/src/bcf/bcf/v3/model/__init__.py +++ b/src/bcf/bcf/v3/model/__init__.py @@ -55,40 +55,12 @@ from bcf.v3.model.visinfo import ( ) __all__ = [ - "Document", - "DocumentInfo", - "DocumentInfoDocuments", - "Extensions", - "ExtensionsPriorities", - "ExtensionsSnippetTypes", - "ExtensionsStages", - "ExtensionsTopicLabels", - "ExtensionsTopicStatuses", - "ExtensionsTopicTypes", - "ExtensionsUsers", "BimSnippet", - "Comment", - "CommentViewpoint", - "DocumentReference", - "File", - "Header", - "HeaderFiles", - "Markup", - "Topic", - "TopicComments", - "TopicDocumentReferences", - "TopicLabels", - "TopicReferenceLinks", - "TopicRelatedTopics", - "TopicRelatedTopicsRelatedTopic", - "TopicViewpoints", - "ViewPoint", - "Project", - "ProjectInfo", - "Version", "Bitmap", "BitmapFormat", "ClippingPlane", + "Comment", + "CommentViewpoint", "Component", "ComponentColoring", "ComponentColoringColor", @@ -98,10 +70,38 @@ __all__ = [ "ComponentVisibilityExceptions", "Components", "Direction", + "Document", + "DocumentInfo", + "DocumentInfoDocuments", + "DocumentReference", + "Extensions", + "ExtensionsPriorities", + "ExtensionsSnippetTypes", + "ExtensionsStages", + "ExtensionsTopicLabels", + "ExtensionsTopicStatuses", + "ExtensionsTopicTypes", + "ExtensionsUsers", + "File", + "Header", + "HeaderFiles", "Line", + "Markup", "OrthogonalCamera", "PerspectiveCamera", "Point", + "Project", + "ProjectInfo", + "Topic", + "TopicComments", + "TopicDocumentReferences", + "TopicLabels", + "TopicReferenceLinks", + "TopicRelatedTopics", + "TopicRelatedTopicsRelatedTopic", + "TopicViewpoints", + "Version", + "ViewPoint", "ViewSetupHints", "VisualizationInfo", "VisualizationInfoBitmaps", diff --git a/src/ifcopenshell-python/ifcopenshell/__init__.py b/src/ifcopenshell-python/ifcopenshell/__init__.py index 97083d0938..c5d3808b0d 100644 --- a/src/ifcopenshell-python/ifcopenshell/__init__.py +++ b/src/ifcopenshell-python/ifcopenshell/__init__.py @@ -93,10 +93,10 @@ from .sql import sqlite, sqlite_entity # explicitly specify available imported symbols # (it's a requirement for a typed library) __all__ = [ - "ifcopenshell_wrapper", + "entity_instance", "file", "guid", - "entity_instance", + "ifcopenshell_wrapper", "sqlite", "sqlite_entity", "stream", diff --git a/src/ifcopenshell-python/ifcopenshell/api/alignment/__init__.py b/src/ifcopenshell-python/ifcopenshell/api/alignment/__init__.py index ce4d961491..92bf9f7d58 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/alignment/__init__.py +++ b/src/ifcopenshell-python/ifcopenshell/api/alignment/__init__.py @@ -86,32 +86,32 @@ __all__ = [ "add_stationing_referent", "add_vertical_layout", "add_zero_length_segment", - "create_layout_segment", "create", "create_as_offset_curve", "create_as_polyline", "create_by_pi_method", "create_from_csv", - "create_segment_representations", + "create_layout_segment", "create_representation", + "create_segment_representations", "distance_along_from_station", "get_alignment", - "get_alignment_station", - "get_layout_segments", - "get_horizontal_layout", - "get_vertical_layout", - "get_cant_layout", "get_alignment_layouts", + "get_alignment_station", "get_axis_subcontext", "get_basis_curve", + "get_cant_layout", "get_child_alignments", "get_curve", + "get_horizontal_layout", "get_layout_curve", + "get_layout_segments", "get_parent_alignment", + "get_vertical_layout", "has_zero_length_segment", "layout_horizontal_alignment_by_pi_method", "layout_vertical_alignment_by_pi_method", - "update_fallback_position", "name_segments", "register_referent_name_callback", + "update_fallback_position", ] diff --git a/src/ifcopenshell-python/ifcopenshell/api/cogo/__init__.py b/src/ifcopenshell-python/ifcopenshell/api/cogo/__init__.py index faf19dfe95..bb1c7c5243 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/cogo/__init__.py +++ b/src/ifcopenshell-python/ifcopenshell/api/cogo/__init__.py @@ -28,6 +28,6 @@ from .bearing2dd import bearing2dd __all__ = [ "add_survey_point", "assign_survey_point", - "edit_survey_point", "bearing2dd", + "edit_survey_point", ] diff --git a/src/ifcopenshell-python/ifcopenshell/api/unit/__init__.py b/src/ifcopenshell-python/ifcopenshell/api/unit/__init__.py index 8b17d0ecab..4245b49c37 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/unit/__init__.py +++ b/src/ifcopenshell-python/ifcopenshell/api/unit/__init__.py @@ -41,9 +41,9 @@ wrap_usecases(__path__, __name__) __all__ = [ "add_context_dependent_unit", "add_conversion_based_unit", + "add_derived_unit", "add_monetary_unit", "add_si_unit", - "add_derived_unit", "assign_unit", "edit_derived_unit", "edit_monetary_unit", diff --git a/src/ifcopenshell-python/ifcopenshell/guid.py b/src/ifcopenshell-python/ifcopenshell/guid.py index e7fe70673c..6e3c6f5b0a 100644 --- a/src/ifcopenshell-python/ifcopenshell/guid.py +++ b/src/ifcopenshell-python/ifcopenshell/guid.py @@ -60,8 +60,8 @@ import string __all__ = [ "compress", "expand", - "split", "new", + "split", ] # ----------------------------------------------------------------