Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions microgen/shape/strut_lattice/abstract_lattice.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ def __init__(
strut_heights: float | list[float] | None = None,
base_vertices: npt.NDArray[np.float64] | None = None,
strut_vertex_pairs: npt.NDArray[np.int64] | None = None,
*,
cell_size: float = 1.0,
strut_joints: bool = False,
density: float | None = None,
Expand Down
3 changes: 2 additions & 1 deletion microgen/shape/strut_lattice/custom_lattice.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@ class CustomLattice(AbstractLattice):
Uses user-defined base vertices and strut vertex pairs.
"""

def __init__( # noqa: PLR0913
def __init__(
self,
base_vertices: npt.NDArray[np.float64],
strut_vertex_pairs: npt.NDArray[np.int64],
*,
strut_radius: float | None = None,
strut_heights: float | list[float] | None = None,
cell_size: float = 1.0,
Expand Down
7 changes: 7 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,13 @@ ignore_missing_imports = true
target-version = "py310"

[tool.ruff.lint]
extend-select = [
# Boolean traps — booleans in public APIs must be keyword-only.
"FBT001",
"FBT002",
# Function names must be lowercase.
"N802",
]
exclude = [
"docs/*",
"tests/*",
Expand Down
Loading