Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #69839 > unrolled thread
| Started by | Chris “Kwpolska” Warrick <kwpolska@gmail.com> |
|---|---|
| First post | 2014-04-08 09:52 +0200 |
| Last post | 2014-04-08 09:52 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: change spacing to two instead of four with pep8 or flake8? Chris “Kwpolska” Warrick <kwpolska@gmail.com> - 2014-04-08 09:52 +0200
| From | Chris “Kwpolska” Warrick <kwpolska@gmail.com> |
|---|---|
| Date | 2014-04-08 09:52 +0200 |
| Subject | Re: change spacing to two instead of four with pep8 or flake8? |
| Message-ID | <mailman.8997.1396943572.18130.python-list@python.org> |
On Tue, Apr 8, 2014 at 5:06 AM, Dennis <daodennis@gmail.com> wrote: > Hi, > > 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. > > If this is too specific and I should go to the pep8/flake8 MLs that is > welcome advice too. > > Thanks, > > Dennis > -- > https://mail.python.org/mailman/listinfo/python-list You are trying to use tools that enforce a set of rules, one of which is “use 4 spaces per indentation level”. If you don’t agree with this rule, simply don’t use tools that enforce these rules. It’s that easy. But note, that E111 is “indentation is not a multiple of four”. Which you are never going to listen to anyways if you want 2 spaces per indentation level. If you *really* want to do 2 spaces (and look weird), then just ignore that. -- Chris “Kwpolska” Warrick <http://kwpolska.tk> PGP: 5EAAEA16 stop html mail | always bottom-post | only UTF-8 makes sense
Back to top | Article view | comp.lang.python
csiph-web