Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

import black, black.check(string) #1544

Closed
nschloe opened this issue Jul 11, 2020 · 2 comments
Closed

import black, black.check(string) #1544

nschloe opened this issue Jul 11, 2020 · 2 comments
Labels
C: api One day Black will have an API ... R: duplicate This issue or pull request already exists T: enhancement New feature or request

Comments

@nschloe
Copy link

nschloe commented Jul 11, 2020

For checking code snippets in my READMEs, I use exdown. I would now like to black-check the snippets, too, so I'd love to see something like

import black

black.check(string)

working.

@nschloe nschloe added the T: enhancement New feature or request label Jul 11, 2020
@hugovk
Copy link
Contributor

hugovk commented Jul 11, 2020

See also #779 and https://github.com/asottile/blacken-docs.

@JelleZijlstra JelleZijlstra added the C: api One day Black will have an API ... label May 30, 2021
@felix-hilden
Copy link
Collaborator

Let's discuss the API details on the linked issue (#779). I'll add this case as well.

@ichard26 ichard26 added the R: duplicate This issue or pull request already exists label Jan 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: api One day Black will have an API ... R: duplicate This issue or pull request already exists T: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants