Skip to content

feat: Discover Python quality tools - #13661

Closed
anthonyshew wants to merge 1 commit into
shew/native-task-aggregatesfrom
shew/python-native-tools
Closed

anthonyshew wants to merge 1 commit into
shew/native-task-aggregatesfrom
shew/python-native-tools

Conversation

@anthonyshew

@anthonyshew anthonyshew commented Aug 4, 2026 •

Copy link
Copy Markdown
Contributor

Description

This is PR 2 of 3 in the dependency-driven Python Native Tasks stack and is based on #13660.

  • Discover direct Ruff, Black, mypy, ty, and Pyright declarations from project dependencies, recursive dependency groups, and legacy uv development dependencies.
  • Apply root defaults and member role overrides while excluding optional-only, marker-qualified, installed, and transitive tools.
  • Register qualified tool tasks plus canonical lint/check aggregates, with deterministic Ruff-before-Black formatter selection and warnings.
  • Generate frozen uv commands with correct root/member ownership, dependency-group activation, target placement, and homogeneous or heterogeneous workspace entrypoints.
  • Preserve uv format and uv check fallbacks, keep tasks uncached, avoid lockfile mutation, and include type-check dependency sources and known configuration inputs.
  • Add unit and integration coverage for parsing, inheritance, commands, fan-out, filters, warnings, fallbacks, queries, watch exclusions, and lockfile preservation.

Stack:

  1. refactor: Add aggregate native task support #13660: core aggregate Native Tasks.
  2. This PR: dependency-driven Python quality-tool discovery.
  3. docs: Document dependency-driven Python tasks #13662: architecture and user documentation.

Testing Instructions

Verification run on the complete stacked tip:

  • cargo fmt --all -- --check passed.
  • cargo test -p turborepo-repository --no-fail-fast passed: 429 tests, including 30 uv unit tests.
  • cargo test -p turborepo-engine --no-fail-fast passed: 135 tests.
  • cargo test -p turbo --test uv_workspace_test --no-fail-fast passed: 13 tests.
  • cargo test -p turbo --test task_entrypoints_test --no-fail-fast passed: 12 tests.
  • cargo clippy -p turborepo-repository -p turborepo-engine -p turborepo-lib -p turborepo-task-executor -p turborepo-run-summary -p turborepo-query --all-targets -- -D warnings passed.

A full workspace test/lint run was not performed. uv is unavailable in the devbox, so real declared-tool execution was not exercised; exact resolver argv and dry-run graph behavior are covered. Root-owned tools conservatively include the workspace external closure, while virtual-root tool identities not reachable from member closures are not individually represented; tasks remain uncached.

Co-Authored-By: Anthony Shew <anthonyshew@gmail.com>
@anthonyshew
anthonyshew requested a review from a team as a code owner August 4, 2026 15:39
@anthonyshew
anthonyshew requested review from tknickman and removed request for a team August 4, 2026 15:39
@vercel

vercel Bot commented Aug 4, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
examples-basic-web Ready Ready Preview Aug 4, 2026 3:40pm
examples-designsystem-docs Ready Ready Preview Aug 4, 2026 3:40pm
examples-gatsby-web Ready Ready Preview Aug 4, 2026 3:40pm
examples-kitchensink-blog Ready Ready Preview Aug 4, 2026 3:40pm
examples-nonmonorepo Ready Ready Preview Aug 4, 2026 3:40pm
examples-svelte-web Ready Ready Preview Aug 4, 2026 3:40pm
examples-tailwind-web Ready Ready Preview Aug 4, 2026 3:40pm
examples-vite-web Ready Ready Preview Aug 4, 2026 3:40pm
turbo-site Ready Ready Preview Aug 4, 2026 3:40pm
turborepo-eve-agent Ready Ready Preview Aug 4, 2026 3:40pm

@anthonyshew

Copy link
Copy Markdown
Contributor Author

Superseded by stack #13677. Python discovery and execution are now split across #13669 through #13675.

@anthonyshew anthonyshew closed this Aug 4, 2026
anthonyshew added a commit that referenced this pull request Aug 5, 2026
### Description

Part 13 of 13 in stack #13677, based on #13675. Documents aggregate
Native Task semantics, task-local contracts, Python declaration and
inheritance rules, qualified/canonical tasks, commands, fallbacks,
hashing, watch behavior, and limitations.

Previous: #13675. This is the top of the replacement stack for #13660,
#13661, and #13662.

### Testing Instructions

`git diff --check` and all full-tip verification passed: formatting; 437
repository tests; 135 engine tests; 13 uv integration tests; 12
entrypoint tests; and strict clippy across affected crates. Every
cumulative tip passed `cargo check --tests`. Markdown files are excluded
by the repository formatter. `uv` is unavailable, and a full workspace
run was not performed.

Co-authored-by: vercel[bot] <35613825+vercel[bot]@users.noreply.github.com>

This branch was successfully deployed

1 active deployment
Preview – turborepo-eve-agent — c5260fea Deployed Aug 4, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant