Skip to content

feat: add taplo TOML linting pre-commit hooks - #223

Merged
c-vigo merged 3 commits into
devfrom
feature/181-toml-linting-pre-commit-hook
Mar 5, 2026
Merged

c-vigo merged 3 commits into
devfrom
feature/181-toml-linting-pre-commit-hook

Conversation

@c-vigo

@c-vigo c-vigo commented Mar 5, 2026 •

Copy link
Copy Markdown
Contributor

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 feature
  • fix -- Bug fix
  • docs -- Documentation only
  • chore -- Maintenance task (deps, config, etc.)
  • refactor -- Code restructuring (no behavior change)
  • test -- Adding or updating tests
  • ci -- CI/CD pipeline changes
  • build -- Build system or dependency changes
  • revert -- Reverts a previous commit
  • style -- Code style (formatting, whitespace)

Modifiers

  • Breaking change (!) -- This change breaks backward compatibility

Changes Made

  • .pre-commit-config.yaml — Add SHA-pinned taplo-format and taplo-lint hooks from ComPWA/taplo-pre-commit (v0.9.3)
  • .taplo.toml — New Taplo configuration disabling schema validation for pyproject.toml files (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 short authors array
  • .cur*or/agent-models.toml — Reformat key alignment to taplo standard
  • .github/agent-blocklist.toml — Inline short arrays
  • assets/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 TOML linting in pre-commit (#181)
    • Add SHA-pinned taplo-format and taplo-lint hooks to enforce TOML formatting and schema-aware validation
    • Add .taplo.toml configuration (local to this repository, not synced downstream)

Testing

  • Tests pass locally (just test)

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the documentation accordingly (edit docs/templates/, then run just docs)
  • I have updated CHANGELOG.md in the [Unreleased] section (and pasted the entry above)
  • My changes generate no new warnings or errors
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published

Additional Notes

N/A

Refs: #181

c-vigo added 2 commits March 5, 2026 16:12
- 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
@c-vigo c-vigo self-assigned this Mar 5, 2026
@c-vigo
c-vigo enabled auto-merge March 5, 2026 15:17
@c-vigo
c-vigo disabled auto-merge March 5, 2026 15:18
@c-vigo
c-vigo merged commit f77cd71 into dev Mar 5, 2026
11 of 12 checks passed
@c-vigo
c-vigo deleted the feature/181-toml-linting-pre-commit-hook branch March 5, 2026 15:30
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