mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-12 14:33:28 +00:00
Apply RUF022 (sorted __all__)
This commit is contained in:
@@ -48,6 +48,7 @@ select = [
|
|||||||
"FA", # future annotations
|
"FA", # future annotations
|
||||||
"UP", # pyupgrade
|
"UP", # pyupgrade
|
||||||
"RUF015", # next() > list_comprehension[0]
|
"RUF015", # next() > list_comprehension[0]
|
||||||
|
"RUF022", # sort __all__
|
||||||
]
|
]
|
||||||
ignore = [
|
ignore = [
|
||||||
"FA100", # Conflicts with Blender using annotations for props definitions.
|
"FA100", # Conflicts with Blender using annotations for props definitions.
|
||||||
|
|||||||
@@ -36,20 +36,10 @@ from bcf.v2.model.visinfo import (
|
|||||||
|
|
||||||
__all__ = [
|
__all__ = [
|
||||||
"BimSnippet",
|
"BimSnippet",
|
||||||
"Comment",
|
|
||||||
"CommentViewpoint",
|
|
||||||
"Header",
|
|
||||||
"HeaderFile",
|
|
||||||
"Markup",
|
|
||||||
"Topic",
|
|
||||||
"TopicDocumentReference",
|
|
||||||
"TopicRelatedTopic",
|
|
||||||
"ViewPoint",
|
|
||||||
"Project",
|
|
||||||
"ProjectExtension",
|
|
||||||
"Version",
|
|
||||||
"BitmapFormat",
|
"BitmapFormat",
|
||||||
"ClippingPlane",
|
"ClippingPlane",
|
||||||
|
"Comment",
|
||||||
|
"CommentViewpoint",
|
||||||
"Component",
|
"Component",
|
||||||
"ComponentColoring",
|
"ComponentColoring",
|
||||||
"ComponentColoringColor",
|
"ComponentColoringColor",
|
||||||
@@ -58,10 +48,20 @@ __all__ = [
|
|||||||
"ComponentVisibilityExceptions",
|
"ComponentVisibilityExceptions",
|
||||||
"Components",
|
"Components",
|
||||||
"Direction",
|
"Direction",
|
||||||
|
"Header",
|
||||||
|
"HeaderFile",
|
||||||
"Line",
|
"Line",
|
||||||
|
"Markup",
|
||||||
"OrthogonalCamera",
|
"OrthogonalCamera",
|
||||||
"PerspectiveCamera",
|
"PerspectiveCamera",
|
||||||
"Point",
|
"Point",
|
||||||
|
"Project",
|
||||||
|
"ProjectExtension",
|
||||||
|
"Topic",
|
||||||
|
"TopicDocumentReference",
|
||||||
|
"TopicRelatedTopic",
|
||||||
|
"Version",
|
||||||
|
"ViewPoint",
|
||||||
"ViewSetupHints",
|
"ViewSetupHints",
|
||||||
"VisualizationInfo",
|
"VisualizationInfo",
|
||||||
"VisualizationInfoBitmap",
|
"VisualizationInfoBitmap",
|
||||||
|
|||||||
@@ -55,40 +55,12 @@ from bcf.v3.model.visinfo import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
__all__ = [
|
__all__ = [
|
||||||
"Document",
|
|
||||||
"DocumentInfo",
|
|
||||||
"DocumentInfoDocuments",
|
|
||||||
"Extensions",
|
|
||||||
"ExtensionsPriorities",
|
|
||||||
"ExtensionsSnippetTypes",
|
|
||||||
"ExtensionsStages",
|
|
||||||
"ExtensionsTopicLabels",
|
|
||||||
"ExtensionsTopicStatuses",
|
|
||||||
"ExtensionsTopicTypes",
|
|
||||||
"ExtensionsUsers",
|
|
||||||
"BimSnippet",
|
"BimSnippet",
|
||||||
"Comment",
|
|
||||||
"CommentViewpoint",
|
|
||||||
"DocumentReference",
|
|
||||||
"File",
|
|
||||||
"Header",
|
|
||||||
"HeaderFiles",
|
|
||||||
"Markup",
|
|
||||||
"Topic",
|
|
||||||
"TopicComments",
|
|
||||||
"TopicDocumentReferences",
|
|
||||||
"TopicLabels",
|
|
||||||
"TopicReferenceLinks",
|
|
||||||
"TopicRelatedTopics",
|
|
||||||
"TopicRelatedTopicsRelatedTopic",
|
|
||||||
"TopicViewpoints",
|
|
||||||
"ViewPoint",
|
|
||||||
"Project",
|
|
||||||
"ProjectInfo",
|
|
||||||
"Version",
|
|
||||||
"Bitmap",
|
"Bitmap",
|
||||||
"BitmapFormat",
|
"BitmapFormat",
|
||||||
"ClippingPlane",
|
"ClippingPlane",
|
||||||
|
"Comment",
|
||||||
|
"CommentViewpoint",
|
||||||
"Component",
|
"Component",
|
||||||
"ComponentColoring",
|
"ComponentColoring",
|
||||||
"ComponentColoringColor",
|
"ComponentColoringColor",
|
||||||
@@ -98,10 +70,38 @@ __all__ = [
|
|||||||
"ComponentVisibilityExceptions",
|
"ComponentVisibilityExceptions",
|
||||||
"Components",
|
"Components",
|
||||||
"Direction",
|
"Direction",
|
||||||
|
"Document",
|
||||||
|
"DocumentInfo",
|
||||||
|
"DocumentInfoDocuments",
|
||||||
|
"DocumentReference",
|
||||||
|
"Extensions",
|
||||||
|
"ExtensionsPriorities",
|
||||||
|
"ExtensionsSnippetTypes",
|
||||||
|
"ExtensionsStages",
|
||||||
|
"ExtensionsTopicLabels",
|
||||||
|
"ExtensionsTopicStatuses",
|
||||||
|
"ExtensionsTopicTypes",
|
||||||
|
"ExtensionsUsers",
|
||||||
|
"File",
|
||||||
|
"Header",
|
||||||
|
"HeaderFiles",
|
||||||
"Line",
|
"Line",
|
||||||
|
"Markup",
|
||||||
"OrthogonalCamera",
|
"OrthogonalCamera",
|
||||||
"PerspectiveCamera",
|
"PerspectiveCamera",
|
||||||
"Point",
|
"Point",
|
||||||
|
"Project",
|
||||||
|
"ProjectInfo",
|
||||||
|
"Topic",
|
||||||
|
"TopicComments",
|
||||||
|
"TopicDocumentReferences",
|
||||||
|
"TopicLabels",
|
||||||
|
"TopicReferenceLinks",
|
||||||
|
"TopicRelatedTopics",
|
||||||
|
"TopicRelatedTopicsRelatedTopic",
|
||||||
|
"TopicViewpoints",
|
||||||
|
"Version",
|
||||||
|
"ViewPoint",
|
||||||
"ViewSetupHints",
|
"ViewSetupHints",
|
||||||
"VisualizationInfo",
|
"VisualizationInfo",
|
||||||
"VisualizationInfoBitmaps",
|
"VisualizationInfoBitmaps",
|
||||||
|
|||||||
@@ -93,10 +93,10 @@ from .sql import sqlite, sqlite_entity
|
|||||||
# explicitly specify available imported symbols
|
# explicitly specify available imported symbols
|
||||||
# (it's a requirement for a typed library)
|
# (it's a requirement for a typed library)
|
||||||
__all__ = [
|
__all__ = [
|
||||||
"ifcopenshell_wrapper",
|
"entity_instance",
|
||||||
"file",
|
"file",
|
||||||
"guid",
|
"guid",
|
||||||
"entity_instance",
|
"ifcopenshell_wrapper",
|
||||||
"sqlite",
|
"sqlite",
|
||||||
"sqlite_entity",
|
"sqlite_entity",
|
||||||
"stream",
|
"stream",
|
||||||
|
|||||||
@@ -86,32 +86,32 @@ __all__ = [
|
|||||||
"add_stationing_referent",
|
"add_stationing_referent",
|
||||||
"add_vertical_layout",
|
"add_vertical_layout",
|
||||||
"add_zero_length_segment",
|
"add_zero_length_segment",
|
||||||
"create_layout_segment",
|
|
||||||
"create",
|
"create",
|
||||||
"create_as_offset_curve",
|
"create_as_offset_curve",
|
||||||
"create_as_polyline",
|
"create_as_polyline",
|
||||||
"create_by_pi_method",
|
"create_by_pi_method",
|
||||||
"create_from_csv",
|
"create_from_csv",
|
||||||
"create_segment_representations",
|
"create_layout_segment",
|
||||||
"create_representation",
|
"create_representation",
|
||||||
|
"create_segment_representations",
|
||||||
"distance_along_from_station",
|
"distance_along_from_station",
|
||||||
"get_alignment",
|
"get_alignment",
|
||||||
"get_alignment_station",
|
|
||||||
"get_layout_segments",
|
|
||||||
"get_horizontal_layout",
|
|
||||||
"get_vertical_layout",
|
|
||||||
"get_cant_layout",
|
|
||||||
"get_alignment_layouts",
|
"get_alignment_layouts",
|
||||||
|
"get_alignment_station",
|
||||||
"get_axis_subcontext",
|
"get_axis_subcontext",
|
||||||
"get_basis_curve",
|
"get_basis_curve",
|
||||||
|
"get_cant_layout",
|
||||||
"get_child_alignments",
|
"get_child_alignments",
|
||||||
"get_curve",
|
"get_curve",
|
||||||
|
"get_horizontal_layout",
|
||||||
"get_layout_curve",
|
"get_layout_curve",
|
||||||
|
"get_layout_segments",
|
||||||
"get_parent_alignment",
|
"get_parent_alignment",
|
||||||
|
"get_vertical_layout",
|
||||||
"has_zero_length_segment",
|
"has_zero_length_segment",
|
||||||
"layout_horizontal_alignment_by_pi_method",
|
"layout_horizontal_alignment_by_pi_method",
|
||||||
"layout_vertical_alignment_by_pi_method",
|
"layout_vertical_alignment_by_pi_method",
|
||||||
"update_fallback_position",
|
|
||||||
"name_segments",
|
"name_segments",
|
||||||
"register_referent_name_callback",
|
"register_referent_name_callback",
|
||||||
|
"update_fallback_position",
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -28,6 +28,6 @@ from .bearing2dd import bearing2dd
|
|||||||
__all__ = [
|
__all__ = [
|
||||||
"add_survey_point",
|
"add_survey_point",
|
||||||
"assign_survey_point",
|
"assign_survey_point",
|
||||||
"edit_survey_point",
|
|
||||||
"bearing2dd",
|
"bearing2dd",
|
||||||
|
"edit_survey_point",
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -41,9 +41,9 @@ wrap_usecases(__path__, __name__)
|
|||||||
__all__ = [
|
__all__ = [
|
||||||
"add_context_dependent_unit",
|
"add_context_dependent_unit",
|
||||||
"add_conversion_based_unit",
|
"add_conversion_based_unit",
|
||||||
|
"add_derived_unit",
|
||||||
"add_monetary_unit",
|
"add_monetary_unit",
|
||||||
"add_si_unit",
|
"add_si_unit",
|
||||||
"add_derived_unit",
|
|
||||||
"assign_unit",
|
"assign_unit",
|
||||||
"edit_derived_unit",
|
"edit_derived_unit",
|
||||||
"edit_monetary_unit",
|
"edit_monetary_unit",
|
||||||
|
|||||||
@@ -60,8 +60,8 @@ import string
|
|||||||
__all__ = [
|
__all__ = [
|
||||||
"compress",
|
"compress",
|
||||||
"expand",
|
"expand",
|
||||||
"split",
|
|
||||||
"new",
|
"new",
|
||||||
|
"split",
|
||||||
]
|
]
|
||||||
|
|
||||||
# ----------------------------------------------------------------
|
# ----------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user