top | item 35275260

(no title)

yeukhon | 2 years ago

Thank you! Would you mind me asking whether you use any IDE like VS Code, IntelliJ etc?

I think, it would be ideal if the read and edit are fit for your need (say 80 characters max) inside the editor, but when you are committing, there is a pre-commit hook that would automatically reformat (but your IDE can still display and edit as if it was at 80 max characters).

Now sure how practical that is (and I imagine that isn't really a thing today), but what is your take on that?

discuss

order

gostsamo|2 years ago

I'm using vs code for python development and the company has standardized on black with pre-commit hooks. I'm actually happy with the setup. Line length is not important for me, so short lines work too as they work for everyone else.