New abstract config object
This commit is contained in:
parent
b1076b9d90
commit
f6819de572
2 changed files with 11 additions and 2 deletions
9
jarvis_tasks/config.py
Normal file
9
jarvis_tasks/config.py
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
"""Task config."""
|
||||||
|
from jarvis_core.config import Config
|
||||||
|
|
||||||
|
|
||||||
|
class TaskConfig(Config):
|
||||||
|
REQUIRED = ["token", "client_id", "mongo", "twitter"]
|
||||||
|
OPTIONAL = {
|
||||||
|
"log_level": "WARNING"
|
||||||
|
}
|
4
poetry.lock
generated
4
poetry.lock
generated
|
@ -200,7 +200,7 @@ plugins = ["setuptools"]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "jarvis-core"
|
name = "jarvis-core"
|
||||||
version = "0.2.1"
|
version = "0.3.0"
|
||||||
description = ""
|
description = ""
|
||||||
category = "main"
|
category = "main"
|
||||||
optional = false
|
optional = false
|
||||||
|
@ -218,7 +218,7 @@ umongo = "^3.1.0"
|
||||||
type = "git"
|
type = "git"
|
||||||
url = "https://git.zevaryx.com/stark-industries/jarvis/jarvis-core.git"
|
url = "https://git.zevaryx.com/stark-industries/jarvis/jarvis-core.git"
|
||||||
reference = "main"
|
reference = "main"
|
||||||
resolved_reference = "1139c406fbb049b313c653b9fafae4c7aa3ffde6"
|
resolved_reference = "b8db789590bc2b5148e19f15e86167403b3e8cc3"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "jedi"
|
name = "jedi"
|
||||||
|
|
Loading…
Add table
Reference in a new issue