Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #69856
| From | Peter Otten <__peter__@web.de> |
|---|---|
| Subject | Re: change spacing to two instead of four with pep8 or flake8? |
| Date | 2014-04-08 14:55 +0200 |
| Organization | None |
| References | <CANqRL=RBbfXJMFyV8w7J8Sdf+bRccOhK4kU6e60q1XcBX8GqSQ@mail.gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.9010.1396961763.18130.python-list@python.org> (permalink) |
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.
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
Re: change spacing to two instead of four with pep8 or flake8? Peter Otten <__peter__@web.de> - 2014-04-08 14:55 +0200
Re: change spacing to two instead of four with pep8 or flake8? Roy Smith <roy@panix.com> - 2014-04-08 09:20 -0400
Re: change spacing to two instead of four with pep8 or flake8? Peter Otten <__peter__@web.de> - 2014-04-08 16:06 +0200
csiph-web