Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
maartenbreddels committed Jul 10, 2023
1 parent 4037769 commit c898080
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions solara/server/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class ThemeVariant(str, Enum):
auto = "auto"


class ThemeSettings(BaseSettings): # type: ignore
class ThemeSettings(BaseSettings):
variant: ThemeVariant = ThemeVariant.light
variant_user_selectable: bool = True
loader: str = "solara"
Expand All @@ -39,7 +39,7 @@ class Config:
env_file = ".env"


class SSG(BaseSettings): # type: ignore
class SSG(BaseSettings):
# the first app create will initialize this if it is not set
build_path: Optional[Path] = None
enabled: bool = False
Expand All @@ -51,14 +51,14 @@ class Config:
env_file = ".env"


class Search(BaseSettings): # type: ignore
class Search(BaseSettings):
enabled: bool = False

class Config:
env_prefix = "solara_search_"


class Telemetry(BaseSettings): # type: ignore
class Telemetry(BaseSettings):
mixpanel_token: str = "91845eb13a68e3db4e58d64ad23673b7"
mixpanel_enable: bool = True
server_user_id: str = "not_set"
Expand All @@ -71,7 +71,7 @@ class Config:
env_file = ".env"


class Assets(BaseSettings): # type: ignore
class Assets(BaseSettings):
cdn: str = "https://cdn.jsdelivr.net/npm/"
proxy: bool = True
proxy_cache_dir: Path = Path(prefix + "/share/solara/cdn/")
Expand All @@ -98,7 +98,7 @@ class Config:
OAUTH_TEST_CLIENT_IDs = [AUTH0_TEST_CLIENT_ID, FIEF_TEST_CLIENT_ID]


class Session(BaseSettings): # type: ignore
class Session(BaseSettings):
secret_key: str = SESSION_SECRET_KEY_DEFAULT
https_only: Optional[bool] = None
same_site: str = "lax"
Expand All @@ -109,7 +109,7 @@ class Config:
env_file = ".env"


class OAuth(BaseSettings): # type: ignore
class OAuth(BaseSettings):
private: bool = False

client_id: str = AUTH0_TEST_CLIENT_ID
Expand All @@ -131,7 +131,7 @@ class Config:
HOST_DEFAULT = "localhost"


class MainSettings(BaseSettings): # type: ignore
class MainSettings(BaseSettings):
use_pdb: bool = False
mode: str = "production"
tracer: bool = False
Expand Down
2 changes: 1 addition & 1 deletion solara/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
home.mkdir(parents=True, exist_ok=True)


class Cache(BaseSettings): # type: ignore
class Cache(BaseSettings):
type: str = Field("memory", env="SOLARA_CACHE", title="Type of cache, e.g. 'memory', 'disk', 'redis', or a multilevel cache, e.g. 'memory,disk'")
disk_max_size: str = Field("10GB", title="Maximum size for'disk' cache , e.g. 10GB, 500MB")
memory_max_size: str = Field("1GB", title="Maximum size for 'memory-size' cache, e.g. 10GB, 500MB")
Expand Down

0 comments on commit c898080

Please sign in to comment.