Skip to content
Merged
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
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,13 @@ jobs:
shell: bash
if: matrix.task == 'check'
run: |
uv run pyright typeagent test tools gmail
uv run pyright src test tools gmail

- name: Run Format
shell: bash
if: matrix.task == 'format'
run: |
uv run black -tpy312 -tpy313 -tpy314 typeagent test tools gmail demo --check
uv run black -tpy312 -tpy313 -tpy314 src test tools gmail demo --check
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dang we need to add isort here too. I had forgotten CI isn't using 'make' any more (for a good reason: it doesn't work on Windows).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK will add it


- name: Login to Azure
if: matrix.task == 'test'
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ all: venv format check test build

.PHONY: format
format: venv
.venv/bin/isort typeagent test tools gmail demo $(FLAGS)
.venv/bin/black -tpy312 -tpy313 -tpy314 typeagent test tools gmail demo $(FLAGS)
.venv/bin/isort src test tools gmail demo $(FLAGS)
.venv/bin/black -tpy312 -tpy313 -tpy314 src test tools gmail demo $(FLAGS)

.PHONY: check
check: venv
.venv/bin/pyright --pythonpath .venv/bin/python typeagent test tools gmail
.venv/bin/pyright --pythonpath .venv/bin/python src test tools gmail

.PHONY: test
test: venv
Expand All @@ -36,7 +36,7 @@ compare: venv

.PHONY: mcp
mcp: venv
.venv/bin/mcp dev typeagent/mcp/server.py
.venv/bin/mcp dev src/typeagent/mcp/server.py

.PHONY: profile
profile: venv
Expand Down
6 changes: 3 additions & 3 deletions make.bat
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ goto help
:format
if not exist ".venv\" call make.bat venv
echo Formatting code...
.venv\Scripts\isort typeagent test tools gmail demo
.venv\Scripts\black typeagent test tools gmail demo
.venv\Scripts\isort src test tools gmail demo
.venv\Scripts\black src test tools gmail demo
goto end

:check
if not exist ".venv\" call make.bat venv
echo Running type checks...
.venv\Scripts\pyright --pythonpath .venv\Scripts\python typeagent test tools gmail demo
.venv\Scripts\pyright --pythonpath .venv\Scripts\python src test tools gmail demo
goto end

:test
Expand Down
7 changes: 6 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ GitHub = "https://github.com/microsoft/typeagent-py"
Documentation = "https://github.com/microsoft/typeagent-py/tree/main/docs/README.md"

[tool.uv.build-backend]
module-root = ""
module-root = "src"

[tool.pytest.ini_options]
asyncio_default_fixture_loop_scope = "function"
Expand All @@ -85,3 +85,8 @@ sections = ["FUTURE", "STDLIB", "THIRDPARTY", "AI", "FIRSTPARTY", "LOCALFOLDER"]
known_ai = ["mcp", "openai", "pydantic", "pydantic_ai", "tiktoken", "typechat"]
known_first_party = ["typeagent", "test", "tools", "gmail", "demo"]
known_local_folder = ["conftest"]

[dependency-groups]
dev = [
"isort>=7.0.0",
]
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 8 additions & 0 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading