Skip to content

quality: apply the biome, vale and docstrfmt shards only when dx.toml selects the tool - #15139

Merged
TrapsterDK merged 1 commit into
mainfrom
vale-opt-in
Nov 28, 2026
Merged

TrapsterDK merged 1 commit into
mainfrom
vale-opt-in

Conversation

@TrapsterDK

Copy link
Copy Markdown
Collaborator

Follow-up to #15134 (#15128).

After #15134, a dx check //... of any consumer that has a README.md still applied real_vale_lint_aspect, so it fetched dx_vale_*, even though no default selects vale. docstrfmt had the same problem for .rst.

  • core/quality/core_aspects.json: each tool row (biome, docstrfmt, vale) names its tool in tools.
  • cli/families: QualityFiles gains a tools field. An entry that lists tools is wanted only when its files are present and one of its tools has a tool:<id> mark. Entries without tools behave as before.
  • cli/adopt: consumer_quality_marks adds a tool:<id> mark for every tool in the dx_config::effective selection, the same selection dx generate renders. A dx.toml that fails to load or select is now an error, and dx check reports it as a scope config failure.
  • cli/families/languages.json is regenerated.

Local: tools/dx test //cli/families:all //cli/plan:dx_plan_test //cli/adopt:dx_adopt_test //cli/exec_quality:dx_exec_quality_test //core/modules:lang_projections_test //core/modules:lang_json_test -- --jobs=2 passes (8 passed).

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xut2hvdpJxYihWhnWtH8yv

… selects the tool

The tool rows of core_aspects.json name their tool, and dx check adds a
tool:<id> mark for each tool the effective dx.toml selection turns on. A
row runs only with both its files and its tool, so a consumer whose
README.md is its only prose no longer fetches vale, which no default
selects.
@TrapsterDK
TrapsterDK merged commit b6d681e into main Nov 28, 2026
6 of 7 checks passed
@TrapsterDK
TrapsterDK deleted the vale-opt-in branch November 28, 2026 20:27
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