diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cc7b961..e207148 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,7 +15,7 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: 'v0.14.14' + rev: 'v0.15.0' hooks: # Run the linter. - id: ruff diff --git a/src/scifem/mesh.py b/src/scifem/mesh.py index ebbafa6..6589740 100644 --- a/src/scifem/mesh.py +++ b/src/scifem/mesh.py @@ -97,10 +97,8 @@ def create_entity_markers( num_entities_local = e_map.size_local + e_map.num_ghosts markers = np.full(num_entities_local, -1, dtype=np.int32) - locate_entities = ( - lambda on_boundary: dolfinx.mesh.locate_entities_boundary - if on_boundary - else dolfinx.mesh.locate_entities + locate_entities = lambda on_boundary: ( + dolfinx.mesh.locate_entities_boundary if on_boundary else dolfinx.mesh.locate_entities ) # Concatenate and sort the arrays based on indices