Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jul 22, 2024
1 parent 3794e02 commit 8c6e585
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/standard_names/__init__.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 0 additions & 3 deletions src/standard_names/error.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -25,7 +23,6 @@ def name(self) -> str:


class BadRegistryError(Error):

"""Error to indicate a bad NamesRegistry."""

def __init__(self, names: Iterable[str]):
Expand Down
1 change: 0 additions & 1 deletion src/standard_names/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ def _get_latest_names_file(


class NamesRegistry(MutableSet[str]):

"""A registry of CSDMS Standard Names.
Parameters
Expand Down
2 changes: 1 addition & 1 deletion src/standard_names/standardname.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""A CSDMS standard name."""

from __future__ import annotations

from typing import Any
Expand All @@ -24,7 +25,6 @@ def is_valid_name(name: str) -> bool:


class StandardName:

"""A CSDMS standard name.
Examples
Expand Down

0 comments on commit 8c6e585

Please sign in to comment.