diff --git a/esmvalcore/cmor/fixes.py b/esmvalcore/cmor/fixes.py index 594b3687a1..cb8ebeb954 100644 --- a/esmvalcore/cmor/fixes.py +++ b/esmvalcore/cmor/fixes.py @@ -10,6 +10,6 @@ __all__ = [ "add_altitude_from_plev", "add_plev_from_altitude", - "get_time_bounds", "get_next_month", + "get_time_bounds", ] diff --git a/esmvalcore/dataset.py b/esmvalcore/dataset.py index 3d1083b331..5ce6210e89 100644 --- a/esmvalcore/dataset.py +++ b/esmvalcore/dataset.py @@ -41,8 +41,8 @@ from esmvalcore.typing import Facets, FacetValue __all__ = [ - "Dataset", "INHERITED_FACETS", + "Dataset", "datasets_to_recipe", ] diff --git a/esmvalcore/esgf/__init__.py b/esmvalcore/esgf/__init__.py index 84ff8c1d95..e27d30efc1 100644 --- a/esmvalcore/esgf/__init__.py +++ b/esmvalcore/esgf/__init__.py @@ -43,8 +43,8 @@ from esmvalcore.esgf._search import ESGFDataSource, find_files __all__ = [ - "ESGFFile", "ESGFDataSource", + "ESGFFile", "download", "find_files", ] diff --git a/esmvalcore/experimental/__init__.py b/esmvalcore/experimental/__init__.py index edaff99cdd..3ce07aae3e 100644 --- a/esmvalcore/experimental/__init__.py +++ b/esmvalcore/experimental/__init__.py @@ -17,9 +17,9 @@ __all__ = [ "CFG", - "get_all_recipes", - "get_recipe", "Recipe", "RecipeList", + "get_all_recipes", + "get_recipe", "warnings", ] diff --git a/esmvalcore/preprocessor/__init__.py b/esmvalcore/preprocessor/__init__.py index 4cd30efa42..2b9053bbe5 100644 --- a/esmvalcore/preprocessor/__init__.py +++ b/esmvalcore/preprocessor/__init__.py @@ -113,7 +113,7 @@ logger = logging.getLogger(__name__) -__all__ = [ +__all__ = [ # noqa: RUF022 # File reformatting/CMORization "fix_file", # Load cubes from file diff --git a/esmvalcore/preprocessor/regrid_schemes.py b/esmvalcore/preprocessor/regrid_schemes.py index 5fbc5f0359..3d292d4623 100644 --- a/esmvalcore/preprocessor/regrid_schemes.py +++ b/esmvalcore/preprocessor/regrid_schemes.py @@ -20,9 +20,9 @@ logger = logging.getLogger(__name__) __all__ = [ - "IrisESMFRegrid", "GenericFuncScheme", "GenericRegridder", + "IrisESMFRegrid", "UnstructuredLinear", "UnstructuredLinearRegridder", "UnstructuredNearest", diff --git a/pyproject.toml b/pyproject.toml index 158c455725..9c7387422e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -192,7 +192,6 @@ ignore = [ "PT011", # pytest.raises without match argument "PT027", # Use `pytest.raises` instead of unittest-style `assertRaises` "PTH", # Use pathlib everywhere - "RUF022", # `__all__` definitions that are not ordered according to an "isort-style" sort. "SIM102", # Use a single `if` statement instead of nested `if` statements "SIM117", # Use a single `with` statement with multiple contexts instead of nested `with` statements "TD003", # Missing issue link on the line following this TODO