Skip to content
This repository has been archived by the owner on Jan 19, 2023. It is now read-only.

Apply changes to staged lines only #20

Closed
aalbaali opened this issue Jul 13, 2022 · 1 comment
Closed

Apply changes to staged lines only #20

aalbaali opened this issue Jul 13, 2022 · 1 comment

Comments

@aalbaali
Copy link

If new lines are added to a file, then YAPF checks the entire file format and could update lines that were not modified by the programmer. Is there a way to run the YAPF formatting only on the staged lines and not the entire file? (this is being used on legacy code.)

@aalbaali aalbaali changed the title Apply changes to staged lines Apply changes to staged lines only Jul 13, 2022
@asottile
Copy link
Member

this repo just calls yapf

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants