From 58ff8a3804d1dd149ed942d6c1cb2c28bdb5dea8 Mon Sep 17 00:00:00 2001 From: Jacopo Date: Mon, 16 Dec 2024 12:51:46 +0000 Subject: [PATCH] pre-commit --- model/atmosphere/dycore/docs/ext/icon4py_sphinx.py | 10 ++++++++-- model/atmosphere/dycore/docs/ext/offset_providers.py | 12 +++++++++--- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/model/atmosphere/dycore/docs/ext/icon4py_sphinx.py b/model/atmosphere/dycore/docs/ext/icon4py_sphinx.py index ccda3b176..cb2129aac 100644 --- a/model/atmosphere/dycore/docs/ext/icon4py_sphinx.py +++ b/model/atmosphere/dycore/docs/ext/icon4py_sphinx.py @@ -192,8 +192,14 @@ def make_offset_providers(self, offset_providers: set) -> list[str]: ] for offprov in offset_providers: - op_section.extend([f" .. image:: static/img/offsetProvider_{offprov}.png", - f" :alt: {offprov}", " :class: offset-provider-img", ""]) + op_section.extend( + [ + f" .. image:: static/img/offsetProvider_{offprov}.png", + f" :alt: {offprov}", + " :class: offset-provider-img", + "", + ] + ) return op_section diff --git a/model/atmosphere/dycore/docs/ext/offset_providers.py b/model/atmosphere/dycore/docs/ext/offset_providers.py index 0af01bed9..848ccf054 100644 --- a/model/atmosphere/dycore/docs/ext/offset_providers.py +++ b/model/atmosphere/dycore/docs/ext/offset_providers.py @@ -117,11 +117,17 @@ def color_vertex(self, vertex, coloridx=0): vertex_size = self.vertex_size - 2 * coloridx match vertex: case "A": - self.ax.plot(self.A[0], self.A[1], "o", color=COLORS[coloridx], markersize=vertex_size) + self.ax.plot( + self.A[0], self.A[1], "o", color=COLORS[coloridx], markersize=vertex_size + ) case "B": - self.ax.plot(self.B[0], self.B[1], "o", color=COLORS[coloridx], markersize=vertex_size) + self.ax.plot( + self.B[0], self.B[1], "o", color=COLORS[coloridx], markersize=vertex_size + ) case "C": - self.ax.plot(self.C[0], self.C[1], "o", color=COLORS[coloridx], markersize=vertex_size) + self.ax.plot( + self.C[0], self.C[1], "o", color=COLORS[coloridx], markersize=vertex_size + ) def color_vertices(self, coloridx=0): """