Repository navigation
feat: add taplo TOML linting pre-commit hooks - #223
Merged
Merged
Conversation
- Wire SHA-pinned taplo-format and taplo-lint hooks via ComPWA/taplo-pre-commit - Add .taplo.toml config disabling schema validation for pyproject.toml files - Include .taplo.toml in workspace sync manifest and sync it. - Update CHANGELOG Refs: #181
4 tasks
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.
Description
Add TOML linting to the pre-commit pipeline using taplo so that TOML files are validated for formatting and schema consistency in local development and CI. Existing TOML files are reformatted to comply with the new hooks.
Type of Change
feat-- New featurefix-- Bug fixdocs-- Documentation onlychore-- Maintenance task (deps, config, etc.)refactor-- Code restructuring (no behavior change)test-- Adding or updating testsci-- CI/CD pipeline changesbuild-- Build system or dependency changesrevert-- Reverts a previous commitstyle-- Code style (formatting, whitespace)Modifiers
!) -- This change breaks backward compatibilityChanges Made
.pre-commit-config.yaml— Add SHA-pinnedtaplo-formatandtaplo-linthooks fromComPWA/taplo-pre-commit(v0.9.3).taplo.toml— New Taplo configuration disabling schema validation forpyproject.tomlfiles (local to this repository, not synced downstream)pyproject.toml— Reformat to 2-space indentation and inline short arrays (taplo style)packages/vig-utils/pyproject.toml— Inline shortauthorsarray.cur*or/agent-models.toml— Reformat key alignment to taplo standard.github/agent-blocklist.toml— Inline short arraysassets/workspace/— Mirror formatting changes in workspace template copies (.pre-commit-config.yaml,.cur*or/agent-models.toml,.github/agent-blocklist.toml,pyproject.toml)Changelog Entry
Added
taplo-formatandtaplo-linthooks to enforce TOML formatting and schema-aware validation.taplo.tomlconfiguration (local to this repository, not synced downstream)Testing
just test)Checklist
docs/templates/, then runjust docs)CHANGELOG.mdin the[Unreleased]section (and pasted the entry above)Additional Notes
N/A
Refs: #181