does git do auto formatting? if so i hate it
@icedquinn my indents keep getting fucking auto formatted i cant make a pr when the tabbing is all fucked up
@nyanide sounds like an editor issue. git doesn't change that stuff.

@icedquinn @nyanide
AFAIR it can be configured to do that via hooks, but you're right, by default it doesn't do anything but the CR-LF thing

@m0xee @nyanide i guess some people do something like this in the pre-commit hook as well. i don't tend to use any of the things, but i remember there's some python project that lets you import a bunch of premade ones.
Follow

@icedquinn @nyanide
Yeah, for Python autopep8 vim plugin usually gets the shit done, so you don't need any extra hooks. Unless the project is very… idiosyncratic and has its very own set of formatting conventions 😅

Sign in to participate in the conversation
Librem Social

Librem Social is an opt-in public network. Messages are shared under Creative Commons BY-SA 4.0 license terms. Policy.

Stay safe. Please abide by our code of conduct.

(Source code)

image/svg+xml Librem Chat image/svg+xml