aiidalab / aiidalab/aiidalab-qe

Add validator for plugin entrys

オープン
#503 コメント 0 件 リアクション 0 件 担当者 1 名 @superstar54 が担当を希望しています GitHub で見る
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 はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。