-
-
Notifications
You must be signed in to change notification settings - Fork 36
chore: move dev deps to [dependency-groups] so uv sync gives a working test env #2217
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -95,7 +95,7 @@ jobs: | |||||
| # not from a fresh unpinned resolve that can pull in a regressed | ||||||
| # release (see the fastapi 0.137 incident, #903). | ||||||
| - name: Install dependencies | ||||||
| run: uv sync --frozen --extra dev --python ${{ matrix.python-version }} | ||||||
| run: uv sync --frozen --python ${{ matrix.python-version }} | ||||||
|
|
||||||
| # SPA bundle is stubbed by tests/conftest.py — see pytest_configure. | ||||||
| # The real build is exercised in the spa-build job below. | ||||||
|
|
@@ -168,7 +168,7 @@ jobs: | |||||
| enable-cache: true | ||||||
|
|
||||||
| - name: Install dependencies | ||||||
| run: uv sync --frozen --extra dev --python 3.12 | ||||||
| run: uv sync --frozen --python 3.12 | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. CRITICAL: Same issue as the shards job — lint step will fail without test dependencies.
Suggested change
Reply with |
||||||
|
|
||||||
| - name: Check for syntax errors | ||||||
| run: uv run --no-sync python -m compileall tinyagentos/ -q | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -19,7 +19,7 @@ To keep this sustainable, **all contributors must agree to the Contributor Licen | |||||
| ```bash | ||||||
| git clone https://github.com/jaylfc/taOS.git | ||||||
| cd tinyagentos | ||||||
| uv sync --extra dev | ||||||
| uv sync | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. CRITICAL: With deps moved to
Suggested change
Reply with |
||||||
| # Build the desktop SPA - static/desktop/ is gitignored (generated artifact) | ||||||
| cd desktop && npm install && npm run build && cd .. | ||||||
| uv run pytest tests/ --ignore=tests/e2e -n auto | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -686,7 +686,7 @@ uv run exo | |||||
| ## Development | ||||||
|
|
||||||
| ```bash | ||||||
| uv sync --extra dev | ||||||
| uv sync | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. CRITICAL: Same issue as CONTRIBUTING.md — developers following these instructions won't get test tooling.
Suggested change
Reply with |
||||||
| uv run pytest tests/ --ignore=tests/e2e -n auto # ~7,400 tests | ||||||
| cd desktop && npx vitest run # ~1,900 desktop tests | ||||||
| ``` | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -62,6 +62,12 @@ proxy = ["litellm[proxy]>=1.93.0", "prisma>=0.11.0"] | |
| # dependency or fresh installs abort. torrent_downloader guards the import and | ||
| # falls back to a direct download when it is absent. | ||
| torrent = ["libtorrent>=2.0.9"] | ||
| e2e = [ | ||
| "pytest>=9.1.1", | ||
| "pytest-playwright>=0.5.0", | ||
| ] | ||
|
|
||
| [dependency-groups] | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. CRITICAL: PEP 735 does not auto-install named groups. Reply with |
||
| dev = [ | ||
| "pytest>=9.1.1", | ||
| "pytest-asyncio>=0.23.0", | ||
|
qodo-code-review[bot] marked this conversation as resolved.
Comment on lines
+70
to
73
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 2. Security job uses dev extra The repo still references installing the removed dev project extra (in the security workflow via pip install -e "\.[dev,proxy,worker]" and in internal docs via uv sync --extra dev), but dev is no longer defined as an optional extra in pyproject.toml after being moved to [dependency-groups].dev. This makes CI dependency installation and contributor setup instructions incorrect (and potentially failing), reducing audit reliability and blocking dev/test environment setup. Agent Prompt
|
||
|
|
@@ -75,10 +81,6 @@ dev = [ | |
| "respx>=0.21.0", | ||
| "websockets>=12.0", | ||
| ] | ||
| e2e = [ | ||
| "pytest>=9.1.1", | ||
| "pytest-playwright>=0.5.0", | ||
| ] | ||
|
|
||
| [tool.setuptools.packages.find] | ||
| include = ["tinyagentos*"] | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CRITICAL:
uv syncdoes not install[dependency-groups] devby defaultPEP 735 dependency groups require
--group <name>or--all-groupsto install. Thedevgroup is not special — it is not installed automatically. CI will fail because pytest and other test dependencies will be missing.Reply with
@kilocode-bot fix itto have Kilo Code address this issue.