Giter VIP home page Giter VIP logo

Comments (4)

pappasam avatar pappasam commented on August 12, 2024 1

@wwuck sorry, done!

from toml-sort.

jonyscathe avatar jonyscathe commented on August 12, 2024

Another easy way to fix would be to make a second pre-commit hook in .pre-commit-hooks.yaml called toml-sort-fix or toml-sort-in-place or something like that with a default args of --in-place rather than check.
That way no existing behavior needs to change.

from toml-sort.

pappasam avatar pappasam commented on August 12, 2024

Thanks for clearly laying out this issue!

I'm actually the opposite to you in that I almost always manually configure my hooks based on the locally-installed tooling. So, I don't really have a strong preference here as long as any resolution 1. doesn't negatively impact too many people, and 2. doesn't introduce too much complexity to the codebase.

Based on the above requirements, I have a slight preference for your suggestion to create additional hooks. Seems like it'll preserve backwards compatibility without introducing any unintended behavioral changes.

I'll happily consider a PR if you find time to create one!

from toml-sort.

wwuck avatar wwuck commented on August 12, 2024

@pappasam any chance of a new release tag on github for the new pre-commit hook? pre-commit requires the tag on github as a version reference so the new hook is inaccessible until then.

from toml-sort.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.