asottile/add-trailing-comma

Is it possible to disable whitespace editing?

srcreigh opened this issue · 2 comments

I would like to use add-trailing-comma to add trailing commas to a file. However add-trailing-commas also adds and removes whitespace. Is it possible to disable whitespace editing?

It's not possible to enforce the style without whitespace editing. Is there a particular problematic transformation you're hitting?

I was interested in using add-trailing-comma in conjunction with yapf, since yapf doesn't add trailing commas. I didn't realize that I could run add-trailing-comma then yapf to get trailing commas + yapf formatting. Thanks for the quick reply!