change spacing to two instead of four with pep8 or flake8?
Peter Otten
__peter__ at web.de
Tue Apr 8 10:06:44 EDT 2014
More information about the Python-list mailing list
Tue Apr 8 10:06:44 EDT 2014
- Previous message (by thread): change spacing to two instead of four with pep8 or flake8?
- Next message (by thread): [OFF-TOPIC] How do I find a mentor when no one I work with knows what they are doing?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Roy Smith wrote: > In article <mailman.9010.1396961763.18130.python-list at python.org>, > Peter Otten <__peter__ at 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 :-) There is always a way to achieve roughly the same that takes more time and is slightly harder to get right ;)
- Previous message (by thread): change spacing to two instead of four with pep8 or flake8?
- Next message (by thread): [OFF-TOPIC] How do I find a mentor when no one I work with knows what they are doing?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list