Git Product home page Git Product logo

Comments (2)

warsaw avatar warsaw commented on August 18, 2024

I've thought about requesting minimal extension points / hooks in black, which I hope would be more acceptable than potentially asking for configuration settings they are unlikely to accept. That at least would obviate the need to monkeypatch, although we'd still have to control the invocation point to install our hooks. Still it would future proof us against changes in black that would break blue, such as the whole executor breakage we recently fixed.

I think I like that better than post-processing because I think we essentially need the same level of access to the AST rather than the raw source. With a post-processor, wouldn't we have to re-parse the source and re-implement all the efficiencies that are now in black to e.g. multiprocess all the source files, integrate with blackd etc.?

from blue.

grantjenks avatar grantjenks commented on August 18, 2024

Yes, hooks/entry-points might be a good compromise if the configuration setting is rejected.

from blue.

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.