HydroRoll-Team / HydroRoll-Team/HydroRollCore

[FEAT]: combine code configures dict w/ `config.toml` configures table

Open
#5 0 comments 0 reactions 1 assignee Claimed by @HsiangNianian View on GitHub
enhancement
Dominant language
Python
Stars
5
Forks
1
PR merge metrics
No merged PRs in 30d

Description

### Step 1.

Create `config.toml`:

```toml
[core]
rule_dirs = ["rules"]
```

### Step 2.

Create `main.py`:

```py3
from hrc.core import Core

core = Core(hot_reload=True, config_dict={'core': {'rules':['plugins.thePool']}})

if __name__ == '__main__':
core.run()
```

### step 3.

Run code by using `pdm run main.py`.
This will combine both of the config dict and config table.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.