My project uses a width of 4 spaces for indentation.
However, running flake8 on it gives warnings that say the expected tab / indent width was 2 spaces.
How to configure flake8 to correctly receive 4 spaces for indentation?
class Foo(object): bar = True
The above is my (more simplified) code snippet flake8 flags line # 2 with a warning:
[W0311] Bad indentation. Found 4 spaces, expected 2
I am using vim with the flake8 plugin.
In my .pylintrc :
[FORMAT] indent-string=' '
However, I'm not sure how .pylintrc even .pylintrc into the picture, since the listing is done by the flake8 vim plugin
source share