aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/hrc/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'hrc/config.py')
-rw-r--r--hrc/config.py15
1 files changed, 10 insertions, 5 deletions
diff --git a/hrc/config.py b/hrc/config.py
index b6458b2..d179258 100644
--- a/hrc/config.py
+++ b/hrc/config.py
@@ -1,4 +1,4 @@
-from typing import Set, Union
+from typing import Literal, Optional, Set, Union
from pydantic import BaseModel, ConfigDict, DirectoryPath, Field
@@ -14,16 +14,21 @@ class LogConfig(ConfigModel):
verbose_exception: bool = False
+class ServiceConfig(ConfigModel):
+ """Service configuration."""
+
+
class CoreConfig(ConfigModel):
rules: Set[str] = Field(default_factory=set)
rule_dirs: Set[DirectoryPath] = Field(default_factory=set)
log: LogConfig = LogConfig()
-
+ services: Set[str] = Field(default_factory=set)
class RuleConfig(ConfigModel):
- """rule configuration."""
-
-
+ """Rule configuration."""
+
+
class MainConfig(ConfigModel):
core: CoreConfig = CoreConfig()
rule: RuleConfig = RuleConfig()
+ service: ServiceConfig = ServiceConfig()