Skip to content

Commit 528631b

Browse files
committed
Update environment
1 parent 7c8bd7c commit 528631b

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

.github/workflows/pull_request.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ jobs:
4141
run: uv run --frozen -- pytest -m unit
4242
shell: bash
4343

44-
- name: Integration tests
45-
run: uv run --frozen -- pytest -m integration
46-
shell: bash
44+
# - name: Integration tests
45+
# run: uv run --frozen -- pytest -m integration
46+
# shell: bash
4747

4848
deploy-api-dev:
4949
needs: continuous-integration

api/src/api/application_settings.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
from pathlib import Path
22

3+
from azure.identity import DefaultAzureCredential
34
from pydantic import SecretStr
45
from pydantic.alias_generators import to_pascal
56
from pydantic_settings import (
7+
AzureKeyVaultSettingsSource,
68
BaseSettings,
79
DotEnvSettingsSource,
810
EnvSettingsSource,
@@ -47,12 +49,11 @@ def settings_customise_sources(
4749
settings = (env, dotenv)
4850

4951
if ApplicationEnvironment.get_current() != ApplicationEnvironment.LOCAL:
50-
pass
51-
# azure_key_vault = AzureKeyVaultSettingsSource( # noqa: ERA001, RUF100
52-
# settings_cls,
53-
# dotenv()["AzureKeyVaultUrl"],# noqa: ERA001, RUF100
54-
# DefaultAzureCredential(),# noqa: ERA001, RUF100
55-
# )# noqa: ERA001, RUF100
56-
# settings += (azure_key_vault,)# noqa: ERA001, RUF100
52+
azure_key_vault = AzureKeyVaultSettingsSource(
53+
settings_cls,
54+
dotenv()["AzureKeyVaultUrl"],
55+
DefaultAzureCredential(),
56+
)
57+
settings += (azure_key_vault,)
5758

5859
return settings

0 commit comments

Comments
 (0)