change spacing to two instead of four with pep8 or flake8?
shivam.patel at lendbuzz.com
shivam.patel at lendbuzz.com
Fri Jun 28 12:45:16 EDT 2019
On Tuesday, April 8, 2014 at 8:55:46 AM UTC-4, Peter Otten wrote:
> Dennis wrote:
>
> > In Pylint you can change the spacing multiplier from 4 spaces to two
> > in its pylintrc, but for the life of me I cannot find a way to do this
> > with the flake8 / pep8 utilities.
> >
> > I want to avoid ignoring E111 altogether if at all possible, because
> > it may catch other spacing problems that are not as obvious.
> >
> > hacky/non-hacky solutions welcome of course.
>
> The check is hardcoded
>
> if indent_char == ' ' and indent_level % 4:
> yield 0, "E111 indentation is not a multiple of four"
>
> so your only short-term solution is to modify the script's source code.
What file is this?
More information about the Python-list
mailing list