diff --git a/.ruff.toml b/.ruff.toml index 6eff54c7de..38dcd2af3f 100644 --- a/.ruff.toml +++ b/.ruff.toml @@ -40,7 +40,6 @@ lint.ignore = [ "D208", # Docstring is over-indented "D209", # Multi-line docstring closing quotes should be on a separate line "D211", # No blank lines allowed before class docstring - "D214", # Section is over-indented "D300", # triple double quotes `""" / Use triple single quotes `'''` "D401", # First line of docstring should be in imperative mood: ... "D403", # First word of the first line should be capitalized diff --git a/lib/iris/common/resolve.py b/lib/iris/common/resolve.py index 045dc7b549..9124483dac 100644 --- a/lib/iris/common/resolve.py +++ b/lib/iris/common/resolve.py @@ -205,7 +205,7 @@ class Resolve: >>> resolver = Resolve(cube1, cube2) >>> results = [resolver.cube(data) for data in payload] - """ + """ # noqa: D214 def __init__(self, lhs=None, rhs=None): """Resolve the provided ``lhs`` :class:`~iris.cube.Cube` operand and @@ -2493,7 +2493,7 @@ def mapped(self): >>> resolver.map_rhs_to_lhs False - """ + """ # noqa: D214 result = None if self.mapping is not None: result = self._src_cube.ndim == len(self.mapping) @@ -2554,5 +2554,5 @@ def shape(self): >>> Resolve(cube2, cube1).shape (240, 37, 49) - """ + """ # noqa: D214 return self._broadcast_shape diff --git a/lib/iris/cube.py b/lib/iris/cube.py index b6d2f7fd7e..cb9fc02520 100644 --- a/lib/iris/cube.py +++ b/lib/iris/cube.py @@ -4521,7 +4521,7 @@ def rolling_window(self, coord, aggregator, window, **kwargs): Notice that the forecast_period dimension now represents the 4 possible windows of size 3 from the original cube. - """ + """ # noqa: D214 # Update weights kwargs (if necessary) to handle different types of # weights weights_info = None