Skip to content

Commit ccd4c48

Browse files
authored
ruff compliance for D200. (#5675)
* ruff compliance for D200. * doctests update
1 parent cfa3644 commit ccd4c48

File tree

147 files changed

+151
-427
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

147 files changed

+151
-427
lines changed

.ruff.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ lint.ignore = [
3232
# (D-3) Temporary, before an initial review, either fix ocurrences or move to (2).
3333
"D100", # Missing docstring in public module
3434
"D103", # Missing docstring in public function
35-
"D200", # One-line docstring should fit on one line
3635
"D205", # 1 blank line required between summary line and description
3736
"D401", # First line of docstring should be in imperative mood: ...
3837

benchmarks/benchmarks/aux_factory.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
#
33
# This file is part of Iris and is released under the BSD license.
44
# See LICENSE in the root of the repository for full licensing details.
5-
"""AuxFactory benchmark tests.
6-
7-
"""
5+
"""AuxFactory benchmark tests."""
86

97
import numpy as np
108

benchmarks/benchmarks/coords.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
#
33
# This file is part of Iris and is released under the BSD license.
44
# See LICENSE in the root of the repository for full licensing details.
5-
"""Coord benchmark tests.
6-
7-
"""
5+
"""Coord benchmark tests."""
86

97
import numpy as np
108

benchmarks/benchmarks/cperf/equality.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
#
33
# This file is part of Iris and is released under the BSD license.
44
# See LICENSE in the root of the repository for full licensing details.
5-
"""Equality benchmarks for the CPerf scheme of the UK Met Office's NG-VAT project.
6-
"""
5+
"""Equality benchmarks for the CPerf scheme of the UK Met Office's NG-VAT project."""
76
from .. import on_demand_benchmark
87
from . import SingleDiagnosticMixin
98

benchmarks/benchmarks/cperf/load.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
#
33
# This file is part of Iris and is released under the BSD license.
44
# See LICENSE in the root of the repository for full licensing details.
5-
"""File loading benchmarks for the CPerf scheme of the UK Met Office's NG-VAT project.
6-
"""
5+
"""File loading benchmarks for the CPerf scheme of the UK Met Office's NG-VAT project."""
76
from .. import on_demand_benchmark
87
from . import SingleDiagnosticMixin
98

benchmarks/benchmarks/cperf/save.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
#
33
# This file is part of Iris and is released under the BSD license.
44
# See LICENSE in the root of the repository for full licensing details.
5-
"""File saving benchmarks for the CPerf scheme of the UK Met Office's NG-VAT project.
6-
"""
5+
"""File saving benchmarks for the CPerf scheme of the UK Met Office's NG-VAT project."""
76

87
from iris import save
98

benchmarks/benchmarks/cube.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
#
33
# This file is part of Iris and is released under the BSD license.
44
# See LICENSE in the root of the repository for full licensing details.
5-
"""Cube benchmark tests.
6-
7-
"""
5+
"""Cube benchmark tests."""
86

97
import numpy as np
108

benchmarks/benchmarks/experimental/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,4 @@
22
#
33
# This file is part of Iris and is released under the BSD license.
44
# See LICENSE in the root of the repository for full licensing details.
5-
"""Benchmark tests for the experimental module.
6-
7-
"""
5+
"""Benchmark tests for the experimental module."""

benchmarks/benchmarks/experimental/ugrid/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
#
33
# This file is part of Iris and is released under the BSD license.
44
# See LICENSE in the root of the repository for full licensing details.
5-
"""Benchmark tests for the experimental.ugrid module.
6-
7-
"""
5+
"""Benchmark tests for the experimental.ugrid module."""
86

97
from copy import deepcopy
108

benchmarks/benchmarks/generate_data/ugrid.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
#
33
# This file is part of Iris and is released under the BSD license.
44
# See LICENSE in the root of the repository for full licensing details.
5-
"""Scripts for generating supporting data for UGRID-related benchmarking.
6-
"""
5+
"""Scripts for generating supporting data for UGRID-related benchmarking."""
76
from iris import load_cube as iris_loadcube
87
from iris.experimental.ugrid import PARSE_UGRID_ON_LOAD
98

0 commit comments

Comments
 (0)