Giter VIP home page Giter VIP logo

Comments (2)

dsherret avatar dsherret commented on June 20, 2024 1

There is already a dprint output-resolved-config sub command. Perhaps that could accept a file path as well and the returned config would be limited to only the plugins being formatted. I'm not sure if it should just be another arg or most likely a flag (not sure about a name).

By the way, what I always do to test that is just open a file, add some spaces, then re-run the formatter.

from dprint.

bradzacher avatar bradzacher commented on June 20, 2024

Yeah in hindsight that's what I should have done. And is what I did to verify my fix actually fixed things.

I just ran dprint with verbose mode and saw it had python files and the format time was sane and I stopped there.

And because the codebase was already formatted there ofc weren't CI failures.

Now that I've correctly configured it I can see dprint outputs logs differently if two plugins are running on a file!

Yeah I tried using output-resolved-config but because the plugin is actually configured it shows up there. The issue was that it wasn't associated with python files. Tricky nuance to the config!

from dprint.

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.