-
Notifications
You must be signed in to change notification settings - Fork 8.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: use singular style in config class name (#5489)
- Loading branch information
1 parent
9a5c423
commit 8890978
Showing
11 changed files
with
82 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,35 @@ | ||
from pydantic_settings import BaseSettings, SettingsConfigDict | ||
|
||
from configs.deploy import DeploymentConfigs | ||
from configs.enterprise import EnterpriseFeatureConfigs | ||
from configs.extra import ExtraServiceConfigs | ||
from configs.feature import FeatureConfigs | ||
from configs.middleware import MiddlewareConfigs | ||
from configs.deploy import DeploymentConfig | ||
from configs.enterprise import EnterpriseFeatureConfig | ||
from configs.extra import ExtraServiceConfig | ||
from configs.feature import FeatureConfig | ||
from configs.middleware import MiddlewareConfig | ||
from configs.packaging import PackagingInfo | ||
|
||
|
||
class DifyConfigs( | ||
class DifyConfig( | ||
# based on pydantic-settings | ||
BaseSettings, | ||
|
||
# Packaging info | ||
PackagingInfo, | ||
|
||
# Deployment configs | ||
DeploymentConfigs, | ||
DeploymentConfig, | ||
|
||
# Feature configs | ||
FeatureConfigs, | ||
FeatureConfig, | ||
|
||
# Middleware configs | ||
MiddlewareConfigs, | ||
MiddlewareConfig, | ||
|
||
# Extra service configs | ||
ExtraServiceConfigs, | ||
ExtraServiceConfig, | ||
|
||
# Enterprise feature configs | ||
# **Before using, please contact [email protected] by email to inquire about licensing matters.** | ||
EnterpriseFeatureConfigs, | ||
EnterpriseFeatureConfig, | ||
): | ||
|
||
model_config = SettingsConfigDict( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
from pydantic import BaseModel, Field | ||
|
||
|
||
class EnterpriseFeatureConfigs(BaseModel): | ||
class EnterpriseFeatureConfig(BaseModel): | ||
""" | ||
Enterprise feature configs. | ||
**Before using, please contact [email protected] by email to inquire about licensing matters.** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
from pydantic import BaseModel | ||
|
||
from configs.extra.notion_configs import NotionConfigs | ||
from configs.extra.sentry_configs import SentryConfigs | ||
from configs.extra.notion_config import NotionConfig | ||
from configs.extra.sentry_config import SentryConfig | ||
|
||
|
||
class ExtraServiceConfigs( | ||
class ExtraServiceConfig( | ||
# place the configs in alphabet order | ||
NotionConfigs, | ||
SentryConfigs, | ||
NotionConfig, | ||
SentryConfig, | ||
): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.