Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] main from Azure-Samples:main #34

Open
wants to merge 99 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
99 commits
Select commit Hold shift + click to select a range
46b7453
fix ruff check (#1772)
john0isaac Jul 1, 2024
a6f9d83
Bump the python-requirements group across 1 directory with 19 updates…
dependabot[bot] Jul 1, 2024
7374ee5
Fix login state management (#1778)
mattgotteiner Jul 2, 2024
f4fb45c
Make OpenAI deployment optional (#1777)
pamelafox Jul 3, 2024
1603e94
CSS changes for responsive design (#1646)
zedhaque Jul 10, 2024
e8fd819
Bump typescript from 5.4.5 to 5.5.3 in /app/frontend (#1796)
dependabot[bot] Jul 10, 2024
d34fec0
Docs: More ideas for improving search results (#1811)
pamelafox Jul 12, 2024
8f4af71
Fix vite by adding host (#1812)
pamelafox Jul 12, 2024
ea19e14
Prepdocs: Support additional args (#1813)
mattgotteiner Jul 15, 2024
93a0206
Use AVM for log analytics and application insights. (#1817)
tonybaloney Jul 16, 2024
c273398
Bump @vitejs/plugin-react from 4.1.1 to 4.3.1 in /app/frontend (#1757)
dependabot[bot] Jul 16, 2024
96a8417
Add an optional seed parameter (#1814)
pamelafox Jul 16, 2024
58747a1
Bump certifi from 2024.6.2 to 2024.7.4 in /app/backend (#1789)
dependabot[bot] Jul 16, 2024
b49a89c
Use AVM for all Cognitive Services accounts and services (#1818)
tonybaloney Jul 16, 2024
cfbfa41
fix validation pipeline with missing files and actions (#1774)
anfibiacreativa Jul 19, 2024
23c60da
Bump the python-requirements group across 1 directory with 21 updates…
dependabot[bot] Jul 22, 2024
c9de2c1
Bump @fluentui/react-icons from 2.0.221 to 2.0.249 in /app/frontend (…
dependabot[bot] Jul 22, 2024
6751135
Bump marked from 13.0.0 to 13.0.2 in /app/frontend (#1847)
dependabot[bot] Jul 22, 2024
3dc31ce
Bump @azure/msal-react from 2.0.6 to 2.0.21 in /app/frontend (#1849)
dependabot[bot] Jul 22, 2024
0a62d10
Remove VM (#1852)
pamelafox Jul 22, 2024
3c0697d
New screenshot for README file. (#1853)
zedhaque Jul 23, 2024
a5b3334
Fixed link to private access markdown page (#1859)
bvdboom Jul 24, 2024
28ffa99
Fix logging (#1874)
pamelafox Aug 1, 2024
c559f2f
Update README.md (#1878)
lamtrinhdev Aug 1, 2024
1837d5f
Rename Azure OpenAI key variable (#1880)
pamelafox Aug 1, 2024
1a32cd4
Fix broken paths (#1883)
john0isaac Aug 3, 2024
27816c1
Update deploy_features.md (#1885)
YIN-Renlong Aug 6, 2024
a8b1202
Replace python-jose with pyjwt (#1875)
blutril Aug 7, 2024
55b0961
Upgrade openai, openai-messages-token-helper, for gpt-4o-mini support…
dependabot[bot] Aug 8, 2024
f71bbdf
Better handling of auth errors (#1879)
pamelafox Aug 13, 2024
c98d4be
Prevent message submission on Enter during IME composition (#1908)
KanchiShimono Aug 15, 2024
8fe6429
Bump @fluentui/react-components from 9.37.3 to 9.54.13 in /app/fronte…
dependabot[bot] Aug 19, 2024
01a4111
Bump aiohttp from 3.10.1 to 3.10.2 in /app/backend (#1921)
dependabot[bot] Aug 19, 2024
d313c6a
Updated docs (#1925)
pamelafox Aug 20, 2024
781bf21
Add Markdown Render Support to GPT completions (#56)
praveen-palanisamy Aug 21, 2024
f7969c0
On Demand Azure Speech Generation (#1894)
john0isaac Aug 23, 2024
e854195
Allow disabling app services auth (#1932)
mattgotteiner Aug 23, 2024
7b55ad2
Bump the python-requirements group across 1 directory with 16 updates…
dependabot[bot] Aug 23, 2024
cd2dcd2
Reduce JS size (#1947)
pamelafox Aug 30, 2024
eb5627c
Update test snapshots (#1948)
pamelafox Aug 30, 2024
9073b65
Frontend multi-language support #1690 (#1790)
bnodir Aug 30, 2024
9581ea7
ignore resourceToken and migrationToken as being secure params (#1955)
tonybaloney Sep 5, 2024
fe229cc
Update README.md to include auth login fix for github codespaces user…
GiuseppeGalilei Sep 6, 2024
2333426
Better support for deploying to non-home tenant (#1964)
pamelafox Sep 13, 2024
cc74772
Run format on main.bicep (#1968)
pamelafox Sep 13, 2024
8f3abc4
Adlsgen2 fixes (#1974)
john-carroll-sw Sep 18, 2024
0225f75
Add Azure Container Apps as a host option (#1952)
1yefuwang1 Sep 19, 2024
46b3d6a
Fix hook for App Service (#1993)
pamelafox Sep 26, 2024
106b52b
Bump rollup from 3.29.4 to 3.29.5 in /app/frontend (#1994)
dependabot[bot] Sep 26, 2024
b8f0a74
Refactor scripts to avoid anti-patterns, redundancy (#1986)
pamelafox Sep 26, 2024
b52ebc2
Bump dompurify and @types/dompurify in /app/frontend (#1983)
dependabot[bot] Sep 26, 2024
162a36d
Bump cryptography from 43.0.0 to 43.0.1 in /app/backend (#1967)
dependabot[bot] Sep 26, 2024
9722c78
Changes for easier working with local models (#1992)
pamelafox Sep 26, 2024
a127523
Bump vite from 4.5.3 to 5.4.8 in /app/frontend (#1995)
dependabot[bot] Oct 1, 2024
2dd7ba9
Adding CSV Parser (#1996)
saravana87 Oct 2, 2024
0136294
Bump @azure/msal-browser from 3.19.1 to 3.24.0 in /app/frontend (#1984)
dependabot[bot] Oct 2, 2024
f4f6896
Fix roles for integrated vectorization (#2016)
pamelafox Oct 4, 2024
be26d31
Add chat history feature (#1988)
fujita-h Oct 4, 2024
40b3101
Bump i18next from 23.14.0 to 23.15.2 in /app/frontend (#2027)
dependabot[bot] Oct 7, 2024
e81189f
Bump react-router-dom from 6.23.1 to 6.26.2 in /app/frontend (#2025)
dependabot[bot] Oct 7, 2024
d46ea7d
Bump @types/react from 18.3.3 to 18.3.11 in /app/frontend (#2024)
dependabot[bot] Oct 7, 2024
07362d4
Bump @vitejs/plugin-react from 4.3.1 to 4.3.2 in /app/frontend (#2026)
dependabot[bot] Oct 7, 2024
78583e1
Adding support for Azure OpenAI Deployment Types (Global Standard, St…
zedhaque Oct 12, 2024
ec07548
Update all AVM modules to latest (#2043)
tonybaloney Oct 16, 2024
31f501a
Updates to integrated vectorization (#2045)
pamelafox Oct 17, 2024
7911e32
feat: add Portuguese (pt-BR) translations and update i18n configurati…
glaucia86 Oct 18, 2024
f53d0d8
Bump typescript from 5.5.3 to 5.6.3 in /app/frontend (#2037)
dependabot[bot] Oct 18, 2024
b60274a
Bump @azure/msal-browser from 3.24.0 to 3.26.1 in /app/frontend (#2039)
dependabot[bot] Oct 18, 2024
819d05e
Fix LogAnalytics workspace resource ID issue in containerApps module …
fujita-h Oct 21, 2024
fd81b69
Bugfix: Citation Parsing Issue (Version 2) (#2056)
bnodir Oct 23, 2024
29c0920
Bump prettier from 3.0.3 to 3.3.3 in /app/frontend (#2061)
dependabot[bot] Oct 23, 2024
a79fe57
Fix scrolling bar issue for long content in chat UI (#2044)
BetterAndBetterII Oct 23, 2024
fa85034
use lower() to match upper file extension name (#2069)
BetterAndBetterII Oct 23, 2024
0946893
Feature: include category (#2021)
bnodir Oct 23, 2024
e34edd5
Switch to ACA by default (#2092)
pamelafox Oct 28, 2024
38f7772
Fix regression from PR #2056: Allow whitespace in citation filenames …
bnodir Oct 31, 2024
023dc1b
Add missing variables to azd pipeline (#2104)
pamelafox Nov 1, 2024
3447262
feat: Add Dutch (nl-NL) translations.json and update config.json (#2115)
jeannotdamoiseaux Nov 4, 2024
298e457
feat: Add Danish (da-DK) translations.json and update config.json (#2…
EMjetrot Nov 4, 2024
a8adacf
Bump quart from 0.19.6 to 0.19.7 in /app/backend (#2082)
dependabot[bot] Nov 4, 2024
991ce8f
Bump werkzeug from 3.0.4 to 3.0.6 in /app/backend (#2084)
dependabot[bot] Nov 4, 2024
f7c48db
Bump @vitejs/plugin-react from 4.3.2 to 4.3.3 in /app/frontend (#2087)
dependabot[bot] Nov 4, 2024
1baad3b
Bump vite from 5.4.8 to 5.4.10 in /app/frontend (#2075)
dependabot[bot] Nov 4, 2024
be36436
Bump @types/react-dom from 18.3.0 to 18.3.1 in /app/frontend (#2060)
dependabot[bot] Nov 4, 2024
87b0686
Bump @fluentui/react-components from 9.54.13 to 9.55.1 in /app/fronte…
dependabot[bot] Nov 4, 2024
58833bd
Update model version for gpt-4o to latest (#2106)
pamelafox Nov 5, 2024
becd7f9
Documentation improvements: Remove duplicate READMEs, consistent titl…
pamelafox Nov 5, 2024
62577a4
Properly handle Azure speech service voice var (#2107)
pamelafox Nov 5, 2024
f3a4c1e
VS Code debug launch improvements: remove azd extension dependency, a…
pamelafox Nov 5, 2024
fa9a638
Upgrade Azure OpenAI API version and use AZURE_OPENAI_API_VERSION con…
pamelafox Nov 5, 2024
86b6dad
Refactor settings into a single component across Chat/Ask (#2111)
bnodir Nov 5, 2024
e33a067
Update pre-commit hooks, re-run on files (#2128)
pamelafox Nov 7, 2024
2c723d6
Update links and clean up tasks (#2124)
pamelafox Nov 7, 2024
009d5e1
Port Python tests workflow to uv (#2129)
pamelafox Nov 7, 2024
c3810e8
Feature: Store chat history in Cosmos DB (#2063)
fujita-h Nov 12, 2024
53bd96e
Feature: Add copy button to answer UI (#2131)
jeannotdamoiseaux Nov 13, 2024
6050e80
Bump vite from 5.4.10 to 5.4.11 in /app/frontend (#2140)
dependabot[bot] Nov 13, 2024
f4cdcdb
Bump i18next from 23.15.2 to 23.16.5 in /app/frontend (#2141)
dependabot[bot] Nov 13, 2024
9b4dfae
Update README.md to remove the OpenAI orm (#2156)
pamelafox Nov 14, 2024
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
13 changes: 12 additions & 1 deletion .azdo/pipelines/azure-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,18 @@ steps:
AZURE_OPENAI_CHATGPT_DEPLOYMENT: $(AZURE_OPENAI_CHATGPT_DEPLOYMENT)
AZURE_OPENAI_CHATGPT_DEPLOYMENT_CAPACITY: $(AZURE_OPENAI_CHATGPT_DEPLOYMENT_CAPACITY)
AZURE_OPENAI_CHATGPT_DEPLOYMENT_VERSION: $(AZURE_OPENAI_CHATGPT_DEPLOYMENT_VERSION)
AZURE_OPENAI_CHATGPT_DEPLOYMENT_SKU: $(AZURE_OPENAI_CHATGPT_DEPLOYMENT_SKU)
AZURE_OPENAI_EMB_MODEL_NAME: $(AZURE_OPENAI_EMB_MODEL_NAME)
AZURE_OPENAI_EMB_DEPLOYMENT: $(AZURE_OPENAI_EMB_DEPLOYMENT)
AZURE_OPENAI_EMB_DEPLOYMENT_CAPACITY: $(AZURE_OPENAI_EMB_DEPLOYMENT_CAPACITY)
AZURE_OPENAI_EMB_DEPLOYMENT_VERSION: $(AZURE_OPENAI_EMB_DEPLOYMENT_VERSION)
AZURE_OPENAI_EMB_DEPLOYMENT_SKU: $(AZURE_OPENAI_EMB_DEPLOYMENT_SKU)
AZURE_OPENAI_EMB_DIMENSIONS: $(AZURE_OPENAI_EMB_DIMENSIONS)
AZURE_OPENAI_GPT4V_MODEL: $(AZURE_OPENAI_GPT4V_MODEL)
AZURE_OPENAI_GPT4V_DEPLOYMENT: $(AZURE_OPENAI_GPT4V_DEPLOYMENT)
AZURE_OPENAI_GPT4V_DEPLOYMENT_CAPACITY: $(AZURE_OPENAI_GPT4V_DEPLOYMENT_CAPACITY)
AZURE_OPENAI_GPT4V_DEPLOYMENT_VERSION: $(AZURE_OPENAI_GPT4V_DEPLOYMENT_VERSION)
AZURE_OPENAI_GPT4V_DEPLOYMENT_SKU: $(AZURE_OPENAI_GPT4V_DEPLOYMENT_SKU)
OPENAI_HOST: $(OPENAI_HOST)
OPENAI_API_KEY: $(OPENAI_API_KEY)
OPENAI_ORGANIZATION: $(OPENAI_ORGANIZATION)
Expand All @@ -86,13 +93,15 @@ steps:
AZURE_COMPUTER_VISION_RESOURCE_GROUP: $(AZURE_COMPUTER_VISION_RESOURCE_GROUP)
AZURE_COMPUTER_VISION_LOCATION: $(AZURE_COMPUTER_VISION_LOCATION)
AZURE_COMPUTER_VISION_SKU: $(AZURE_COMPUTER_VISION_SKU)
ENABLE_LANGUAGE_PICKER: $(ENABLE_LANGUAGE_PICKER)
USE_SPEECH_INPUT_BROWSER: $(USE_SPEECH_INPUT_BROWSER)
USE_SPEECH_OUTPUT_BROWSER: $(USE_SPEECH_OUTPUT_BROWSER)
USE_SPEECH_OUTPUT_AZURE: $(USE_SPEECH_OUTPUT_AZURE)
AZURE_SPEECH_SERVICE: $(AZURE_SPEECH_SERVICE)
AZURE_SPEECH_SERVICE_RESOURCE_GROUP: $(AZURE_SPEECH_SERVICE_RESOURCE_GROUP)
AZURE_SPEECH_SERVICE_LOCATION: $(AZURE_SPEECH_SERVICE_LOCATION)
AZURE_SPEECH_SERVICE_SKU: $(AZURE_SPEECH_SERVICE_SKU)
AZURE_SPEECH_SERVICE_VOICE: $(AZURE_SPEECH_SERVICE_VOICE)
AZURE_KEY_VAULT_NAME: $(AZURE_KEY_VAULT_NAME)
AZURE_USE_AUTHENTICATION: $(AZURE_USE_AUTHENTICATION)
AZURE_ENFORCE_ACCESS_CONTROL: $(AZURE_ENFORCE_ACCESS_CONTROL)
Expand All @@ -108,7 +117,9 @@ steps:
AZURE_ADLS_GEN2_STORAGE_ACCOUNT: $(AZURE_ADLS_GEN2_STORAGE_ACCOUNT)
AZURE_ADLS_GEN2_FILESYSTEM_PATH: $(AZURE_ADLS_GEN2_FILESYSTEM_PATH)
AZURE_ADLS_GEN2_FILESYSTEM: $(AZURE_ADLS_GEN2_FILESYSTEM)

DEPLOYMENT_TARGET: $(DEPLOYMENT_TARGET)
AZURE_CONTAINER_APPS_WORKLOAD_PROFILE: $(AZURE_CONTAINER_APPS_WORKLOAD_PROFILE)
USE_CHAT_HISTORY_BROWSER: $(USE_CHAT_HISTORY_BROWSER)
- task: AzureCLI@2
displayName: Deploy Application
inputs:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/azure-dev-validation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ jobs:
- name: Build Bicep for linting
uses: azure/CLI@v2
with:
inlineScript: az config set bicep.use_binary_from_path=false && az bicep build -f infra/main.bicep --stdout
inlineScript: |
export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1
az config set bicep.use_binary_from_path=false && az bicep build -f infra/main.bicep --stdout

psrule:
runs-on: ubuntu-latest
Expand All @@ -42,7 +44,7 @@ jobs:
outputPath: reports/ps-rule-results.sarif
summary: true
continue-on-error: true

env:
PSRULE_CONFIGURATION_AZURE_BICEP_FILE_EXPANSION: 'true'
PSRULE_CONFIGURATION_AZURE_BICEP_FILE_EXPANSION_TIMEOUT: '30'
Expand Down
18 changes: 14 additions & 4 deletions .github/workflows/azure-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,14 @@ jobs:
AZURE_OPENAI_SERVICE: ${{ vars.AZURE_OPENAI_SERVICE }}
AZURE_OPENAI_API_VERSION: ${{ vars.AZURE_OPENAI_API_VERSION }}
AZURE_OPENAI_RESOURCE_GROUP: ${{ vars.AZURE_OPENAI_RESOURCE_GROUP }}
AZURE_DOCUMENTINTELLIGENCE_SERVICE: ${{ vars.AZURE_DOCUMENTINTELLIGENCE_SERVICE }}
AZURE_DOCUMENTINTELLIGENCE_RESOURCE_GROUP: ${{ vars.AZURE_DOCUMENTINTELLIGENCE_RESOURCE_GROUP }}
AZURE_DOCUMENTINTELLIGENCE_SKU: ${{ vars.AZURE_DOCUMENTINTELLIGENCE_SKU }}
AZURE_DOCUMENTINTELLIGENCE_LOCATION: ${{ vars.AZURE_DOCUMENTINTELLIGENCE_LOCATION }}
AZURE_COMPUTER_VISION_SERVICE: ${{ vars.AZURE_COMPUTER_VISION_SERVICE }}
AZURE_COMPUTER_VISION_RESOURCE_GROUP: ${{ vars.AZURE_COMPUTER_VISION_RESOURCE_GROUP }}
AZURE_COMPUTER_VISION_LOCATION: ${{ vars.AZURE_COMPUTER_VISION_LOCATION }}
AZURE_COMPUTER_VISION_SKU: ${{ vars.AZURE_COMPUTER_VISION_SKU }}
AZURE_FORMRECOGNIZER_SERVICE: ${{ vars.AZURE_FORMRECOGNIZER_SERVICE }}
AZURE_FORMRECOGNIZER_RESOURCE_GROUP: ${{ vars.AZURE_FORMRECOGNIZER_RESOURCE_GROUP }}
AZURE_FORMRECOGNIZER_SKU: ${{ vars.AZURE_FORMRECOGNIZER_SKU }}
AZURE_SEARCH_INDEX: ${{ vars.AZURE_SEARCH_INDEX }}
AZURE_SEARCH_SERVICE: ${{ vars.AZURE_SEARCH_SERVICE }}
AZURE_SEARCH_SERVICE_RESOURCE_GROUP: ${{ vars.AZURE_SEARCH_SERVICE_RESOURCE_GROUP }}
Expand All @@ -62,6 +63,11 @@ jobs:
AZURE_OPENAI_EMB_DEPLOYMENT_CAPACITY: ${{ vars.AZURE_OPENAI_EMB_DEPLOYMENT_CAPACITY }}
AZURE_OPENAI_EMB_DEPLOYMENT_VERSION: ${{ vars.AZURE_OPENAI_EMB_DEPLOYMENT_VERSION }}
AZURE_OPENAI_EMB_DIMENSIONS: ${{ vars.AZURE_OPENAI_EMB_DIMENSIONS }}
AZURE_OPENAI_GPT4V_MODEL: ${{ vars.AZURE_OPENAI_GPT4V_MODEL }}
AZURE_OPENAI_GPT4V_DEPLOYMENT: ${{ vars.AZURE_OPENAI_GPT4V_DEPLOYMENT }}
AZURE_OPENAI_GPT4V_DEPLOYMENT_CAPACITY: ${{ vars.AZURE_OPENAI_GPT4V_DEPLOYMENT_CAPACITY }}
AZURE_OPENAI_GPT4V_DEPLOYMENT_VERSION: ${{ vars.AZURE_OPENAI_GPT4V_DEPLOYMENT_VERSION }}
AZURE_OPENAI_GPT4V_DEPLOYMENT_SKU: ${{ vars.AZURE_OPENAI_GPT4V_DEPLOYMENT_SKU }}
OPENAI_HOST: ${{ vars.OPENAI_HOST }}
OPENAI_API_KEY: ${{ vars.OPENAI_API_KEY }}
OPENAI_ORGANIZATION: ${{ vars.OPENAI_ORGANIZATION }}
Expand All @@ -73,13 +79,15 @@ jobs:
USE_GPT4V: ${{ vars.USE_GPT4V }}
AZURE_VISION_ENDPOINT: ${{ vars.AZURE_VISION_ENDPOINT }}
VISION_SECRET_NAME: ${{ vars.VISION_SECRET_NAME }}
ENABLE_LANGUAGE_PICKER: ${{ vars.ENABLE_LANGUAGE_PICKER }}
USE_SPEECH_INPUT_BROWSER: ${{ vars.USE_SPEECH_INPUT_BROWSER }}
USE_SPEECH_OUTPUT_BROWSER: ${{ vars.USE_SPEECH_OUTPUT_BROWSER }}
USE_SPEECH_OUTPUT_AZURE: ${{ vars.USE_SPEECH_OUTPUT_AZURE }}
AZURE_SPEECH_SERVICE: ${{ vars.AZURE_SPEECH_SERVICE }}
AZURE_SPEECH_SERVICE_RESOURCE_GROUP: ${{ vars.AZURE_SPEECH_RESOURCE_GROUP }}
AZURE_SPEECH_SERVICE_LOCATION: ${{ vars.AZURE_SPEECH_SERVICE_LOCATION }}
AZURE_SPEECH_SERVICE_SKU: ${{ vars.AZURE_SPEECH_SERVICE_SKU }}
AZURE_SPEECH_SERVICE_VOICE: ${{ vars.AZURE_SPEECH_SERVICE_VOICE }}
AZURE_KEY_VAULT_NAME: ${{ vars.AZURE_KEY_VAULT_NAME }}
AZURE_USE_AUTHENTICATION: ${{ vars.AZURE_USE_AUTHENTICATION }}
AZURE_ENFORCE_ACCESS_CONTROL: ${{ vars.AZURE_ENFORCE_ACCESS_CONTROL }}
Expand All @@ -92,7 +100,9 @@ jobs:
AZURE_ADLS_GEN2_STORAGE_ACCOUNT: ${{ vars.AZURE_ADLS_GEN2_STORAGE_ACCOUNT }}
AZURE_ADLS_GEN2_FILESYSTEM_PATH: ${{ vars.AZURE_ADLS_GEN2_FILESYSTEM_PATH }}
AZURE_ADLS_GEN2_FILESYSTEM: ${{ vars.AZURE_ADLS_GEN2_FILESYSTEM }}

DEPLOYMENT_TARGET: ${{ vars.DEPLOYMENT_TARGET }}
AZURE_CONTAINER_APPS_WORKLOAD_PROFILE: ${{ vars.AZURE_CONTAINER_APPS_WORKLOAD_PROFILE }}
USE_CHAT_HISTORY_BROWSER: ${{ vars.USE_CHAT_HISTORY_BROWSER }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
13 changes: 10 additions & 3 deletions .github/workflows/python-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,21 @@ jobs:
matrix:
os: ["ubuntu-20.04", "windows-latest"]
python_version: ["3.9", "3.10", "3.11", "3.12"]
env:
UV_SYSTEM_PYTHON: 1
steps:
- uses: actions/checkout@v4
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python_version }}
architecture: x64
- name: Install uv
uses: astral-sh/setup-uv@v3
with:
enable-cache: true
version: "0.4.20"
cache-dependency-glob: "requirements**.txt"
- name: Setup node
uses: actions/setup-node@v4
with:
Expand All @@ -44,10 +52,9 @@ jobs:
npm run build
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
uv pip install -r requirements-dev.txt
- name: Lint with ruff
run: ruff .
run: ruff check .
- name: Check types with mypy
run: |
cd scripts/
Expand Down
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
exclude: '^tests/snapshots/'
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v5.0.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.14
rev: v0.7.2
hooks:
- id: ruff
- repo: https://github.com/psf/black
rev: 24.1.0
rev: 24.10.0
hooks:
- id: black
- repo: https://github.com/pre-commit/mirrors-prettier
Expand Down
17 changes: 8 additions & 9 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"version": "0.2.0",
"configurations": [
{
"name": "Python: Quart",
"name": "Backend (Python)",
"type": "debugpy",
"request": "launch",
"module": "quart",
Expand All @@ -22,18 +22,17 @@
"-p 50505"
],
"console": "integratedTerminal",
"justMyCode": false,
"envFile": "${input:dotEnvFilePath}",
"justMyCode": false
},
{
"name": "Frontend: watch",
"name": "Frontend",
"type": "node-terminal",
"request": "launch",
"command": "npm run dev",
"cwd": "${workspaceFolder}/app/frontend",
},
{
"name": "Python: Debug Tests",
"name": "Tests (Python)",
"type": "debugpy",
"request": "launch",
"program": "${file}",
Expand All @@ -42,11 +41,11 @@
"justMyCode": false
}
],
"inputs": [
"compounds": [
{
"id": "dotEnvFilePath",
"type": "command",
"command": "azure-dev.commands.getDotEnvFilePath"
"name": "Frontend & Backend",
"configurations": ["Backend (Python)", "Frontend"],
"stopAll": true
}
]
}
17 changes: 1 addition & 16 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,6 @@
"tasks": [
{
"label": "Start App",
"type": "dotenv",
"targetTasks": [
"Start App (Script)"
],
"file": "${input:dotEnvFilePath}"
},
{
"label": "Start App (Script)",
"type": "shell",
"command": "${workspaceFolder}/app/start.sh",
"windows": {
Expand All @@ -24,12 +16,5 @@
},
"problemMatcher": []
}
],
"inputs": [
{
"id": "dotEnvFilePath",
"type": "command",
"command": "azure-dev.commands.getDotEnvFilePath"
}
]
}
}
9 changes: 9 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additio
- [Running unit tests](#running-unit-tests)
- [Running E2E tests](#running-e2e-tests)
- [Code Style](#code-style)
- [Adding new azd environment variables](#add-new-azd-environment-variables)

## Code of Conduct

Expand Down Expand Up @@ -160,3 +161,11 @@ python -m black <path-to-file>
```

If you followed the steps above to install the pre-commit hooks, then you can just wait for those hooks to run `ruff` and `black` for you.

## Adding new azd environment variables

When adding new azd environment variables, please remember to update:

1. App Service's [azure.yaml](./azure.yaml)
1. [ADO pipeline](.azdo/pipelines/azure-dev.yml).
1. [Github workflows](.github/workflows/azure-dev.yml)
Loading
Loading