Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ keyring = {version = "^25.7.0", optional = true}

[tool.poetry.group.dev.dependencies]
black = "^25.1.0"
pydantic = "^1.8.1"
pydantic = "^2.0"
pydantic-settings = "^2.0"
flake8 = "^7.3.0"
mypy = "^1.17.1"
pytest = "^8.4.2"
Expand Down
5 changes: 2 additions & 3 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
MultilingualGlossaryDictionaryEntries,
MultilingualGlossaryInfo,
)
from pydantic import BaseSettings
from pydantic_settings import BaseSettings, SettingsConfigDict
import pytest
from typing import Callable, List, Optional
from typing_extensions import Protocol
Expand Down Expand Up @@ -37,8 +37,7 @@ class Config(BaseSettings):
proxy_url: Optional[str] = None
mock_proxy_server_port: Optional[int] = None

class Config:
env_prefix = "DEEPL_"
model_config = SettingsConfigDict(env_prefix="DEEPL_")


@pytest.fixture
Expand Down