From 94e40d963af59cb4b05273b4753aa801c4c2c2da Mon Sep 17 00:00:00 2001 From: "Dongmin,Yu" Date: Sat, 1 Aug 2026 07:44:21 +0900 Subject: [PATCH] Update toml-tidy to 0.3.1 (#1153) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bumps `known_good_version` for `toml-tidy` from 0.2.0 to 0.3.1, and renames the fmt snapshot accordingly. ## What is new upstream - 0.3.0 added an opt-in `--blank-lines` normalization (exactly one blank line before every table header, none elsewhere), plus a `blank-lines` key for `[tool.toml-tidy]` in `pyproject.toml`, and `args: []` in the project's own pre-commit hook definition. - 0.3.1 fixed a CRLF regression in that new code path. Both are opt-in, so the default formatting this plugin invokes (`toml-tidy --in-place`) is unchanged — the snapshot content is byte-identical to the 0.2.0 one, only the version in its filename changed (`git diff -M` reports the rename as 100% similarity). ## Verification `PLUGINS_TEST_LINTER_VERSION=KnownGoodVersion npx jest linters/toml-tidy --ci` → 1 test passed, 1 snapshot passed against the renamed `toml_tidy_v0.3.1_basic.fmt.shot`. --- linters/toml-tidy/README.md | 2 +- linters/toml-tidy/plugin.yaml | 4 ++-- ..._v0.2.0_basic.fmt.shot => toml_tidy_v0.3.1_basic.fmt.shot} | 0 3 files changed, 3 insertions(+), 3 deletions(-) rename linters/toml-tidy/test_data/{toml_tidy_v0.2.0_basic.fmt.shot => toml_tidy_v0.3.1_basic.fmt.shot} (100%) diff --git a/linters/toml-tidy/README.md b/linters/toml-tidy/README.md index 888634ea4..e68394ba1 100644 --- a/linters/toml-tidy/README.md +++ b/linters/toml-tidy/README.md @@ -14,7 +14,7 @@ runtimes: - python@3.12.2 lint: enabled: - - toml-tidy@0.2.0 + - toml-tidy@0.3.1 ``` Per-file defaults (sort order, scope, pinned-first tables) can be configured in the nearest diff --git a/linters/toml-tidy/plugin.yaml b/linters/toml-tidy/plugin.yaml index 7df8a6312..300de54e6 100644 --- a/linters/toml-tidy/plugin.yaml +++ b/linters/toml-tidy/plugin.yaml @@ -5,7 +5,7 @@ tools: runtime: python package: toml-tidy shims: [toml-tidy] - known_good_version: 0.2.0 + known_good_version: 0.3.1 lint: definitions: - name: toml-tidy @@ -23,4 +23,4 @@ lint: suggest_if: never # sorting keys is an opinionated choice; complements taplo (formatting) rather than replacing it affects_cache: - pyproject.toml - known_good_version: 0.2.0 + known_good_version: 0.3.1 diff --git a/linters/toml-tidy/test_data/toml_tidy_v0.2.0_basic.fmt.shot b/linters/toml-tidy/test_data/toml_tidy_v0.3.1_basic.fmt.shot similarity index 100% rename from linters/toml-tidy/test_data/toml_tidy_v0.2.0_basic.fmt.shot rename to linters/toml-tidy/test_data/toml_tidy_v0.3.1_basic.fmt.shot