aiidalab / aiidalab/aiidalab-qe
Add validator for plugin entrys
オープン
enhancement
- 主要言語
- Python
- スター
- 33
- フォーク
- 25
- 平均マージ
- 6時間 7分
- マージ済み PR(30日)
- 8
説明
QeApp plugin uses the dictionary to collect the items that to be added. For example
```python
# this is the entry point of the plugin
hello_world ={
"outline": Outline,
"setting": Setting,
"workchain": workchain_and_builder,
"result": Result,
}
```
The workchain
```python
# register the workchain and builder
workchain_and_builder = {
"workchain": HelloWorldWorkChain,
"get_builder": get_builder,
}
```
It is better to add a validator if the plugin developer passes the wrong keywords and data type. Pydantic could be a solution.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
評価
この issue はまだ評価されていません。