Repository navigation
quality: apply the biome, vale and docstrfmt shards only when dx.toml selects the tool - #15139
Merged
Merged
Conversation
… 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #15134 (#15128).
After #15134, a
dx check //...of any consumer that has aREADME.mdstill appliedreal_vale_lint_aspect, so it fetcheddx_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 intools.cli/families:QualityFilesgains atoolsfield. An entry that lists tools is wanted only when its files are present and one of its tools has atool:<id>mark. Entries withouttoolsbehave as before.cli/adopt:consumer_quality_marksadds atool:<id>mark for every tool in thedx_config::effectiveselection, the same selectiondx generaterenders. Adx.tomlthat fails to load or select is now an error, anddx checkreports it as a scope config failure.cli/families/languages.jsonis 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=2passes (8 passed).🤖 Generated with Claude Code
https://claude.ai/code/session_01Xut2hvdpJxYihWhnWtH8yv