Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions linters/toml-tidy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ runtimes:
- python@3.12.2
lint:
enabled:
- toml-tidy@0.3.1
- toml-tidy@0.7.0
```

Per-file defaults (sort order, scope, pinned-first tables) can be configured in the nearest
`pyproject.toml` under `[tool.toml-tidy]`.
Per-file defaults (sort order, scope, pinned-first tables, blank lines, line width) can be
configured in a `.toml-tidy.toml` or `toml-tidy.toml` file, or under `[tool.toml-tidy]` in a
`pyproject.toml`; the closest configuration file above each target applies.
5 changes: 3 additions & 2 deletions linters/toml-tidy/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ tools:
runtime: python
package: toml-tidy
shims: [toml-tidy]
known_good_version: 0.3.1
known_good_version: 0.7.0
lint:
definitions:
- name: toml-tidy
Expand All @@ -21,6 +21,7 @@ lint:
formatter: true
tools: [toml-tidy]
suggest_if: never # sorting keys is an opinionated choice; complements taplo (formatting) rather than replacing it
direct_configs: [.toml-tidy.toml, toml-tidy.toml]
affects_cache:
- pyproject.toml
known_good_version: 0.3.1
known_good_version: 0.7.0
Loading