Giter Club home page Giter Club logo

Comments (5)

asottile avatar asottile commented on May 28, 2024

it probably could manually but wasn't implemented as black doesn't expose their config loading code (and many of black's options are irrelevant or even incorrect for blacken-docs (such as file filtering)) -- a patch would be accepted for the three supported options: -l / -t / -S

from blacken-docs.

real-yfprojects avatar real-yfprojects commented on May 28, 2024

Instead of calling black through python this tool could call black through subprocess.Popen and pass the string to format through stdin. This allows leveraging all black configuration features with low effort of maintaining since this approach uses the official interface.

I can prepare a PR for that if this change is wanted.

from blacken-docs.

asottile avatar asottile commented on May 28, 2024

it is not wanted, that would be extremely slow

from blacken-docs.

real-yfprojects avatar real-yfprojects commented on May 28, 2024

it is not wanted, that would be extremely slow

While keeping multiple configuration files in sync is extremly error prone.

from blacken-docs.

asottile avatar asottile commented on May 28, 2024

feel free to fork the software if you want to maintain such a thing. I cannot accept that trade off and it will not work correctly in all cases given what I said in the comment directly above yours

from blacken-docs.

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.