Skip to content

Commit

Permalink
Add nomad plugin entry point
Browse files Browse the repository at this point in the history
  • Loading branch information
ladinesa committed Aug 14, 2024
1 parent d3de7ee commit f5d348f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,4 @@ line-ending = "auto"
include = ["runschema*"]

[project.entry-points.'nomad.plugin']
runschema = "runschema:run"
runschema = "runschema:run_schema_entry_point"
7 changes: 3 additions & 4 deletions runschema/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,9 @@
class RunSchemaEntryPoint(SchemaPackageEntryPoint):
def load(self):
from .run import m_package

return m_package


run = RunSchemaEntryPoint(
name='RunSchema', description='Schema definitions for the nomad run section.'
)
run_schema_entry_point = RunSchemaEntryPoint(
name="RunSchema", description="Schema for the nomad run section."
)

0 comments on commit f5d348f

Please sign in to comment.