Skip to content
Draft
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
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "openai-chat-app-quickstart",
"image": "mcr.microsoft.com/devcontainers/python:3.11-bullseye",
"image": "mcr.microsoft.com/devcontainers/python:3.14-bullseye",
"forwardPorts": [50505],
"features": {
"ghcr.io/azure/azure-dev/azd:latest": {}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
fail-fast: false
matrix:
os: ["ubuntu-latest", "windows-latest"]
python_version: ["3.11"]
python_version: ["3.11", "3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@v5
- name: Setup python
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[tool.ruff]
lint.select = ["E", "F", "I", "UP"]
target-version = "py311"
target-version = "py314"
line-length = 120
src = ["src"]

[tool.ruff.lint.isort]
known-first-party = ["quartapp"]

[tool.black]
target-version = ["py311"]
target-version = ["py314"]
line-length = 120

[tool.pytest.ini_options]
Expand Down
4 changes: 2 additions & 2 deletions src/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ------------------- Stage 0: Base Stage ------------------------------
FROM python:3.11-alpine AS base
FROM python:3.14-alpine AS base

WORKDIR /code

Expand All @@ -23,7 +23,7 @@ FROM base AS final

RUN addgroup -S app && adduser -S app -G app

COPY --from=build --chown=app:app /usr/local/lib/python3.11 /usr/local/lib/python3.11
COPY --from=build --chown=app:app /usr/local/lib/python3.14 /usr/local/lib/python3.14
COPY --from=build --chown=app:app /usr/local/bin /usr/local/bin
COPY --from=build --chown=app:app /code /code

Expand Down
13 changes: 12 additions & 1 deletion tests/mock_cred.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,15 @@


class MockAzureCredential(azure.core.credentials_async.AsyncTokenCredential):
pass
async def get_token(self, *scopes, **kwargs):
"""Mock get_token method that returns a fake token."""
import time

from azure.core.credentials import AccessToken

# Return a mock token that expires in 1 hour
return AccessToken("mock_token", int(time.time()) + 3600)

async def close(self):
"""Mock close method."""
pass