From a0eea2516cd9a31c668d98504d9b9cdc0daa0278 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 9 Feb 2026 17:49:53 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.14.14 → v0.15.0](https://github.com/astral-sh/ruff-pre-commit/compare/v0.14.14...v0.15.0) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 2f239d3407e9f141127ac33ea235300a6cd3cbea Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 9 Feb 2026 17:50:04 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/scifem/mesh.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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