-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: cleanup comments and remove warnings
- Loading branch information
1 parent
3e08dec
commit 1cf7ee5
Showing
8 changed files
with
31 additions
and
39 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
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 |
---|---|---|
|
@@ -29,3 +29,4 @@ dev = [ | |
pythonpath = [ | ||
"." | ||
] | ||
asyncio_default_fixture_loop_scope = "session" |
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,25 +1,19 @@ | ||
from pydantic import Field | ||
from pydantic import Field, ConfigDict | ||
from pydantic_settings import BaseSettings | ||
|
||
|
||
class Settings(BaseSettings): | ||
telegram_bot_token: str = Field( | ||
..., env="TELEGRAM_BOT_TOKEN", description="Telegram bot token" | ||
) | ||
check_interval: int = Field( | ||
60, env="CHECK_INTERVAL", description="Interval to check API (seconds)" | ||
) | ||
telegram_bot_token: str = Field(..., description="Telegram bot token") | ||
check_interval: int = Field(60, description="Interval to check API (seconds)") | ||
api_url: str = Field( | ||
"https://api.boltz.exchange", | ||
env="API_URL", | ||
description="Boltz API URL for submarine swaps", | ||
) | ||
database_url: str = Field( | ||
env="DATABASE_URL", | ||
description="Database URL for PostgreSQL", | ||
) | ||
|
||
class Config: | ||
env_file = ".env" | ||
env_file_encoding = "utf-8" | ||
extra = "allow" | ||
model_config = ConfigDict( | ||
env_file=".env", | ||
extra="allow", | ||
) |
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