Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #69859
| From | Roy Smith <roy@panix.com> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: change spacing to two instead of four with pep8 or flake8? |
| Date | 2014-04-08 09:20 -0400 |
| Organization | PANIX Public Access Internet and UNIX, NYC |
| Message-ID | <roy-1740F4.09202908042014@news.panix.com> (permalink) |
| References | <CANqRL=RBbfXJMFyV8w7J8Sdf+bRccOhK4kU6e60q1XcBX8GqSQ@mail.gmail.com> <mailman.9010.1396961763.18130.python-list@python.org> |
In article <mailman.9010.1396961763.18130.python-list@python.org>, Peter Otten <__peter__@web.de> 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. There's always monkey-patching :-)
Back to comp.lang.python | Previous | Next — Previous in thread | 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