Skip to content

Commit ad9730a

Browse files
committed
fix: use proper names for hooks
1 parent 143a3cd commit ad9730a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

hatch_nodejs_version/hooks.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from hatchling.plugin import hookimpl
55

66
from .version_source import NodeJSVersionSource
7-
from .metadata_source import NodeJSMetadataSource
7+
from .metadata_source import NodeJSMetadataHook
88

99

1010
@hookimpl
@@ -13,5 +13,5 @@ def hatch_register_version_source():
1313

1414

1515
@hookimpl
16-
def hatch_register_metadata_source():
17-
return NodeJSMetadataSource
16+
def hatch_register_metadata_hook():
17+
return NodeJSMetadataHook

hatch_nodejs_version/metadata_source.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
}
2222

2323

24-
class NodeJSMetadataSource(MetadataHookInterface):
24+
class NodeJSMetadataHook(MetadataHookInterface):
2525
PLUGIN_NAME = "nodejs"
2626

2727
def __init__(self, *args, **kwargs):

0 commit comments

Comments
 (0)