Skip to content

Commit

Permalink
The newest ruff applies an isort-like operation to __all__
Browse files Browse the repository at this point in the history
  • Loading branch information
jhale committed Nov 22, 2024
1 parent 3e7c708 commit 400a9d9
Show file tree
Hide file tree
Showing 9 changed files with 70 additions and 70 deletions.
2 changes: 1 addition & 1 deletion python/dolfinx/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
__all__ = [
"IndexMap",
"Timer",
"timed",
"git_commit_hash",
"has_adios2",
"has_complex_ufcx_kernels",
Expand All @@ -39,6 +38,7 @@
"has_petsc4py",
"has_ptscotch",
"has_slepc",
"timed",
"ufcx_signature",
]

Expand Down
44 changes: 22 additions & 22 deletions python/dolfinx/fem/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,36 +164,36 @@ def compute_integration_domains(

__all__ = [
"Constant",
"CoordinateElement",
"DirichletBC",
"DofMap",
"ElementMetaData",
"Expression",
"Form",
"Function",
"ElementMetaData",
"create_matrix",
"compute_integration_domains",
"functionspace",
"FunctionSpace",
"create_sparsity_pattern",
"discrete_gradient",
"assemble_scalar",
"IntegralType",
"apply_lifting",
"assemble_matrix",
"assemble_scalar",
"assemble_vector",
"apply_lifting",
"DirichletBC",
"dirichletbc",
"bcs_by_block",
"DofMap",
"Form",
"form",
"IntegralType",
"compile_form",
"compute_integration_domains",
"coordinate_element",
"create_form",
"create_interpolation_data",
"create_matrix",
"create_sparsity_pattern",
"create_vector",
"locate_dofs_geometrical",
"locate_dofs_topological",
"dirichletbc",
"discrete_gradient",
"extract_function_spaces",
"transpose_dofmap",
"create_interpolation_data",
"CoordinateElement",
"coordinate_element",
"form",
"form_cpp_class",
"create_form",
"compile_form",
"functionspace",
"locate_dofs_geometrical",
"locate_dofs_topological",
"set_bc",
"transpose_dofmap",
]
30 changes: 15 additions & 15 deletions python/dolfinx/fem/petsc.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,26 +44,26 @@
from dolfinx.la import create_petsc_vector

__all__ = [
"create_vector",
"create_vector_block",
"create_vector_nest",
"LinearProblem",
"NonlinearProblem",
"apply_lifting",
"apply_lifting_nest",
"assemble_matrix",
"assemble_matrix_block",
"assemble_matrix_nest",
"assemble_vector",
"assemble_vector_block",
"assemble_vector_nest",
"create_matrix",
"create_matrix_block",
"create_matrix_nest",
"assemble_vector",
"assemble_vector_nest",
"assemble_vector_block",
"assemble_matrix",
"assemble_matrix_nest",
"assemble_matrix_block",
"apply_lifting",
"apply_lifting_nest",
"set_bc",
"set_bc_nest",
"LinearProblem",
"NonlinearProblem",
"create_vector",
"create_vector_block",
"create_vector_nest",
"discrete_gradient",
"interpolation_matrix",
"set_bc",
"set_bc_nest",
]


Expand Down
8 changes: 4 additions & 4 deletions python/dolfinx/geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@

__all__ = [
"BoundingBoxTree",
"PointOwnershipData",
"bb_tree",
"compute_colliding_cells",
"squared_distance",
"compute_closest_entity",
"compute_collisions_trees",
"compute_colliding_cells",
"compute_collisions_points",
"compute_collisions_trees",
"compute_distance_gjk",
"create_midpoint_tree",
"PointOwnershipData",
"squared_distance",
]


Expand Down
2 changes: 1 addition & 1 deletion python/dolfinx/io/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from dolfinx.io import gmshio
from dolfinx.io.utils import VTKFile, XDMFFile, distribute_entity_data

__all__ = ["gmshio", "distribute_entity_data", "VTKFile", "XDMFFile"]
__all__ = ["VTKFile", "XDMFFile", "distribute_entity_data", "gmshio"]

if _cpp.common.has_adios2:
# VTXWriter requires ADIOS2
Expand Down
4 changes: 2 additions & 2 deletions python/dolfinx/io/gmshio.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@

__all__ = [
"cell_perm_array",
"ufl_mesh",
"extract_topology_and_markers",
"extract_geometry",
"extract_topology_and_markers",
"model_to_mesh",
"read_from_msh",
"ufl_mesh",
]


Expand Down
10 changes: 5 additions & 5 deletions python/dolfinx/la.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
from dolfinx.cpp.la import BlockMode, InsertMode, Norm

__all__ = [
"orthonormalize",
"is_orthonormal",
"matrix_csr",
"vector",
"InsertMode",
"MatrixCSR",
"Norm",
"InsertMode",
"Vector",
"create_petsc_vector",
"is_orthonormal",
"matrix_csr",
"orthonormalize",
"vector",
]


Expand Down
38 changes: 19 additions & 19 deletions python/dolfinx/mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,36 +35,36 @@
from dolfinx.fem import coordinate_element as _coordinate_element

__all__ = [
"meshtags_from_entities",
"locate_entities",
"locate_entities_boundary",
"refine",
"create_mesh",
"create_submesh",
"Mesh",
"MeshTags",
"meshtags",
"CellType",
"Geometry",
"GhostMode",
"Mesh",
"MeshTags",
"Topology",
"build_dual_graph",
"cell_dim",
"compute_midpoints",
"exterior_facet_indices",
"compute_incident_entities",
"compute_midpoints",
"create_box",
"create_cell_partitioner",
"create_geometry",
"create_interval",
"create_unit_interval",
"create_mesh",
"create_rectangle",
"create_unit_square",
"create_box",
"create_submesh",
"create_unit_cube",
"to_type",
"create_unit_interval",
"create_unit_square",
"entities_to_geometry",
"exterior_facet_indices",
"locate_entities",
"locate_entities_boundary",
"meshtags",
"meshtags_from_entities",
"refine",
"to_string",
"to_type",
"transfer_meshtag",
"entities_to_geometry",
"create_geometry",
"Geometry",
"Topology",
]


Expand Down
2 changes: 1 addition & 1 deletion python/dolfinx/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

import numpy as np

__all__ = ["cffi_utils", "numba_utils", "ctypes_utils"]
__all__ = ["cffi_utils", "ctypes_utils", "numba_utils"]


def get_petsc_lib() -> pathlib.Path:
Expand Down

0 comments on commit 400a9d9

Please sign in to comment.