Skip to content

Commit

Permalink
fix pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
UtkarshMishra-Microsoft committed Dec 3, 2024
1 parent 4d22598 commit 06c5b09
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 8 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ jobs:
- name: Run Flake8
run: python -m flake8 --config=.flake8 app.py

# Step 7: Fix imports with Isort
- name: Fix with Isort
run: python -m isort app.py

# Step 7: Run Black Check for app.py
- name: Run Black Check
run: python -m black --check app.py
Expand Down
27 changes: 19 additions & 8 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,32 @@

import httpx
from azure.core.credentials import AzureKeyCredential
from azure.identity.aio import (DefaultAzureCredential,
get_bearer_token_provider)
from azure.identity.aio import DefaultAzureCredential, get_bearer_token_provider
from azure.search.documents import SearchClient
from openai import AsyncAzureOpenAI
from quart import (Blueprint, Quart, jsonify, make_response, render_template,
request, send_from_directory)
from quart import (
Blueprint,
Quart,
jsonify,
make_response,
render_template,
request,
send_from_directory,
)

from backend.auth.auth_utils import get_authenticated_user_details
from backend.history.cosmosdbservice import CosmosConversationClient
from backend.security.ms_defender_utils import get_msdefender_user_json
from backend.settings import (
MINIMUM_SUPPORTED_AZURE_OPENAI_PREVIEW_API_VERSION, app_settings)
from backend.utils import (ChatType, format_as_ndjson,
format_non_streaming_response,
format_stream_response)
MINIMUM_SUPPORTED_AZURE_OPENAI_PREVIEW_API_VERSION,
app_settings,
)
from backend.utils import (
ChatType,
format_as_ndjson,
format_non_streaming_response,
format_stream_response,
)

bp = Blueprint("routes", __name__, static_folder="static", template_folder="static")

Expand Down

0 comments on commit 06c5b09

Please sign in to comment.