Skip to content

Commit 0d39bfb

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 88efb39 commit 0d39bfb

File tree

4 files changed

+2
-5
lines changed

4 files changed

+2
-5
lines changed

src/standard_names/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""The CSDMS Standard Names"""
2+
23
from standard_names._version import __version__
34
from standard_names.registry import NamesRegistry
45
from standard_names.standardname import StandardName

src/standard_names/error.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@
22

33

44
class Error(Exception):
5-
65
"""Base class for exceptions from this module."""
76

87
pass
98

109

1110
class BadNameError(Error):
12-
1311
"""Error to indicate a poorly-formed standard name."""
1412

1513
def __init__(self, name: str):
@@ -25,7 +23,6 @@ def name(self) -> str:
2523

2624

2725
class BadRegistryError(Error):
28-
2926
"""Error to indicate a bad NamesRegistry."""
3027

3128
def __init__(self, names: Iterable[str]):

src/standard_names/registry.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ def _get_latest_names_file(
148148

149149

150150
class NamesRegistry(MutableSet[str]):
151-
152151
"""A registry of CSDMS Standard Names.
153152
154153
Parameters

src/standard_names/standardname.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""A CSDMS standard name."""
2+
23
from __future__ import annotations
34

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

2526

2627
class StandardName:
27-
2828
"""A CSDMS standard name.
2929
3030
Examples

0 commit comments

Comments
 (0)