Skip to content

toml-sort now sorting uv.lock by default #583

@jamesbraza

Description

@jamesbraza

Since #569 here, https://github.com/pappasam/toml-sort is now inadvertently sorting my uv.lock. From the issue #578, the resolution was to configure files.

Here is toml-sort's current .pre-commit-hooks.yaml:

- id: toml-sort
  name: toml-sort
  entry: toml-sort
  args: [--check]
  language: python
  types: [toml]

So should the resolution be for toml-sort to exclude uv.lock using a files filter?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions