Skip to content

Commit a32702c

Browse files
Python: latency improvements (#3014)
* latency improvements * fixed mypy, added coding standards and instructions * slight logic improvement
1 parent 8b743af commit a32702c

9 files changed

Lines changed: 488 additions & 403 deletions

File tree

.github/workflows/python-merge-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ jobs:
154154
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
155155
- name: Test with pytest
156156
timeout-minutes: 10
157-
run: uv run poe azure-ai-tests -n logical --dist loadfile --dist worksteal --timeout 300 --retries 3 --retry-delay 10
157+
run: uv run --directory packages/azure-ai poe integration-tests -n logical --dist loadfile --dist worksteal --timeout 300 --retries 3 --retry-delay 10
158158
working-directory: ./python
159159
- name: Test Azure AI samples
160160
timeout-minutes: 10

python/.github/instructions/python.instructions.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
---
22
applyTo: '**/agent-framework/python/**'
33
---
4+
- Use `uv run` as the main entrypoint for running Python commands with all packages available.
5+
- Use `uv run poe <task>` for development tasks like formatting (`fmt`), linting (`lint`), type checking (`pyright`, `mypy`), and testing (`test`).
6+
- Use `uv run --directory packages/<package> poe <task>` to run tasks for a specific package.
7+
- Read [DEV_SETUP.md](../../DEV_SETUP.md) for detailed development environment setup and available poe tasks.
8+
- Read [CODING_STANDARD.md](../../CODING_STANDARD.md) for the project's coding standards and best practices.
49
- When verifying logic with unit tests, run only the related tests, not the entire test suite.
510
- For new tests and samples, review existing ones to understand the coding style and reuse it.
611
- When generating new functions, always specify the function return type and parameter types.

0 commit comments

Comments
 (0)