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

New --line-ranges optin for black #270

Closed
kuator opened this issue Nov 26, 2023 · 1 comment
Closed

New --line-ranges optin for black #270

kuator opened this issue Nov 26, 2023 · 1 comment

Comments

@kuator
Copy link

kuator commented Nov 26, 2023

Black added an option for range formatting: psf/black#4020
The problem is it has one option to specify both rowStart and rowEnd.
I tried something like black --no-color -q ${--line-ranges=rowStart-rowEnd} -, but it doesn't work and instead formats the entire file. And yes, I set formatCanRange to true

@kuator
Copy link
Author

kuator commented Nov 26, 2023

Nevermind, here's the solution: #251

@kuator kuator closed this as completed Nov 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant