|
23 | 23 | class CatalogSettings(BaseSettings): |
24 | 24 | """Catalog settings.""" |
25 | 25 |
|
26 | | - PLUGINS_GITHUB_TOKEN: str | None = Field( |
| 26 | + model_config = SettingsConfigDict(env_prefix="PLUGINS_", env_file=".env", env_file_encoding="utf-8", extra="ignore") |
| 27 | + |
| 28 | + GITHUB_TOKEN: str | None = Field( |
27 | 29 | default=None, description="The github token for accessing the plugins repositories" |
28 | 30 | ) |
29 | | - PLUGINS_GITHUB_API: str | None = Field(default="api.github.com", description="api.github.com") |
30 | | - PLUGINS_REPO_URLS: str = Field( |
| 31 | + GITHUB_API: str | None = Field(default="api.github.com", description="api.github.com") |
| 32 | + REPO_URLS: str = Field( |
31 | 33 | default="https://github.com/ibm/cpex-plugins", description="The url of the plugins repositories comma separated" |
32 | 34 | ) |
33 | | - PLUGINS_REGISTRY_FOLDER: str | None = Field( |
| 35 | + REGISTRY_FOLDER: str | None = Field( |
34 | 36 | default="data", description="The folder where the plugin registry is located (r/w)" |
35 | 37 | ) |
36 | | - PLUGINS_CATALOG_FOLDER: str = Field( |
| 38 | + CATALOG_FOLDER: str = Field( |
37 | 39 | default="plugin-catalog", description="The folder where the plugin catalog is located (r/w)" |
38 | 40 | ) |
39 | | - PLUGINS_FOLDER: str = Field(default="plugins", description="The folder where the plugins are located (r/w)") |
40 | | - model_config = SettingsConfigDict(env_prefix="PLUGINS_", env_file=".env", env_file_encoding="utf-8", extra="ignore") |
| 41 | + FOLDER: str = Field(default="plugins", description="The folder where the plugins are located (r/w)") |
41 | 42 |
|
42 | 43 |
|
43 | 44 | def get_catalog_settings() -> CatalogSettings: |
|
0 commit comments