From 0d39bfbfb9a3ffeb07f154f465058def24606851 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 29 Apr 2024 22:05:54 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/standard_names/__init__.py | 1 + src/standard_names/error.py | 3 --- src/standard_names/registry.py | 1 - src/standard_names/standardname.py | 2 +- 4 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/standard_names/__init__.py b/src/standard_names/__init__.py index 527c13f..1d8b717 100644 --- a/src/standard_names/__init__.py +++ b/src/standard_names/__init__.py @@ -1,4 +1,5 @@ """The CSDMS Standard Names""" + from standard_names._version import __version__ from standard_names.registry import NamesRegistry from standard_names.standardname import StandardName diff --git a/src/standard_names/error.py b/src/standard_names/error.py index c9f7609..c121775 100644 --- a/src/standard_names/error.py +++ b/src/standard_names/error.py @@ -2,14 +2,12 @@ class Error(Exception): - """Base class for exceptions from this module.""" pass class BadNameError(Error): - """Error to indicate a poorly-formed standard name.""" def __init__(self, name: str): @@ -25,7 +23,6 @@ def name(self) -> str: class BadRegistryError(Error): - """Error to indicate a bad NamesRegistry.""" def __init__(self, names: Iterable[str]): diff --git a/src/standard_names/registry.py b/src/standard_names/registry.py index c91418b..8fd6074 100644 --- a/src/standard_names/registry.py +++ b/src/standard_names/registry.py @@ -148,7 +148,6 @@ def _get_latest_names_file( class NamesRegistry(MutableSet[str]): - """A registry of CSDMS Standard Names. Parameters diff --git a/src/standard_names/standardname.py b/src/standard_names/standardname.py index bcef993..e7889df 100644 --- a/src/standard_names/standardname.py +++ b/src/standard_names/standardname.py @@ -1,4 +1,5 @@ """A CSDMS standard name.""" + from __future__ import annotations from typing import Any @@ -24,7 +25,6 @@ def is_valid_name(name: str) -> bool: class StandardName: - """A CSDMS standard name. Examples