New abstract config object

This commit is contained in:
Zeva Rose 2022-02-19 13:51:47 -07:00
parent b1076b9d90
commit f6819de572
2 changed files with 11 additions and 2 deletions

9
jarvis_tasks/config.py Normal file
View 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
View file

@ -200,7 +200,7 @@ plugins = ["setuptools"]
[[package]]
name = "jarvis-core"
version = "0.2.1"
version = "0.3.0"
description = ""
category = "main"
optional = false
@ -218,7 +218,7 @@ umongo = "^3.1.0"
type = "git"
url = "https://git.zevaryx.com/stark-industries/jarvis/jarvis-core.git"
reference = "main"
resolved_reference = "1139c406fbb049b313c653b9fafae4c7aa3ffde6"
resolved_reference = "b8db789590bc2b5148e19f15e86167403b3e8cc3"
[[package]]
name = "jedi"