From 3e0e91560acc9f9af23548f357e1d0fa1d4052f9 Mon Sep 17 00:00:00 2001 From: Tremain Knight <2108488+tkknight@users.noreply.github.com> Date: Wed, 3 Jan 2024 11:36:26 +0000 Subject: [PATCH 1/2] ruff compliance for D106. --- .ruff.toml | 2 +- lib/iris/fileformats/netcdf/loader.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.ruff.toml b/.ruff.toml index c35507b5c3..38bbc354ef 100644 --- a/.ruff.toml +++ b/.ruff.toml @@ -29,7 +29,7 @@ lint.ignore = [ "D101", # Missing docstring in public class "D102", # Missing docstring in public method "D104", # Missing docstring in public package - "D106", # Missing docstring in public nested class + #"D106", # Missing docstring in public nested class # (D-3) Temporary, before an initial review, either fix ocurrences or move to (2). "D100", # Missing docstring in public module "D103", # Missing docstring in public function diff --git a/lib/iris/fileformats/netcdf/loader.py b/lib/iris/fileformats/netcdf/loader.py index 31b1774f19..6f69b6e64d 100644 --- a/lib/iris/fileformats/netcdf/loader.py +++ b/lib/iris/fileformats/netcdf/loader.py @@ -662,7 +662,11 @@ def load_cubes(file_sources, callback=None, constraints=None): class ChunkControl(threading.local): + """Provide user control of Chunk Control.""" + class Modes(Enum): + """Modes Enums.""" + DEFAULT = auto() FROM_FILE = auto() AS_DASK = auto() From 34ad437a7fcadae8f534edb29c7d9061ddf74c68 Mon Sep 17 00:00:00 2001 From: Tremain Knight <2108488+tkknight@users.noreply.github.com> Date: Wed, 3 Jan 2024 11:38:40 +0000 Subject: [PATCH 2/2] ruff compliance for D106. --- .ruff.toml | 1 - 1 file changed, 1 deletion(-) diff --git a/.ruff.toml b/.ruff.toml index 38bbc354ef..f159f0afca 100644 --- a/.ruff.toml +++ b/.ruff.toml @@ -29,7 +29,6 @@ lint.ignore = [ "D101", # Missing docstring in public class "D102", # Missing docstring in public method "D104", # Missing docstring in public package - #"D106", # Missing docstring in public nested class # (D-3) Temporary, before an initial review, either fix ocurrences or move to (2). "D100", # Missing docstring in public module "D103", # Missing docstring in public function