autopep8 icon indicating copy to clipboard operation
autopep8 copied to clipboard

Unable to retain tabs indentation (no override?)

Open eskhool opened this issue 8 years ago • 4 comments

pep8 recommends spaces as the preferred format but for those misguided souls like mine who believe in tab indentation (which is permissible via pep8 configuration) autopep8 seems to be forcing it into space based indentation.

Since pep8 allows for tabs (even if it discourages the same), autopep8 should also be configurable to allow for it?

eskhool avatar Apr 23 '16 08:04 eskhool

Downgrading to autopep8 0.9.1 seems to respect tabs (when ignoring E501,E101,W191,E126,E128).

spaceone avatar Oct 26 '16 10:10 spaceone

@spaceone i on opposite want it not to respect tabs, but W191 fix doesn't work.

ghost avatar Jan 18 '17 15:01 ghost

@spaceone Downgrading seems like a bad option, and I don't want to ignore those errors/warnings, I want to have them thrown when spaces are used instead of tabs. Is this really not an option?

jxenos avatar Oct 15 '19 15:10 jxenos

@jxenos I am not a maintainer of autopep8. This is just the solution I had to use when we migrated our hole code base. I would still like to see this feature as it would ease the use of autopep8 still nowerdays.

spaceone avatar Oct 15 '19 21:10 spaceone