Skip to content

Commit

Permalink
allow each InputSchema to exclude certain parts of itself from the co…
Browse files Browse the repository at this point in the history
…nfig
  • Loading branch information
Adam-D-Lewis committed Mar 9, 2024
1 parent b2891d1 commit 0e4d7fd
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/nebari/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,9 @@ def ordered_stages(self):

@property
def ordered_schemas(self):
return [schema.Main] + [_.input_schema for _ in self.ordered_stages if _.input_schema is not None]
return [schema.Main] + [
_.input_schema for _ in self.ordered_stages if _.input_schema is not None
]

@property
def config_schema(self):
Expand All @@ -139,14 +141,14 @@ def write_config(self):
config_exclude = config_exclude.union(new_exclude)
return self.dict(exclude=config_exclude)


return type(
"ConfigSchema",
tuple(ordered_schemas),
"ConfigSchema",
tuple(ordered_schemas),
{
"_ordered_schemas": ordered_schemas,
"write_config": write_config,
})
},
)


nebari_plugin_manager = NebariPluginManager()

0 comments on commit 0e4d7fd

Please sign in to comment.