Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.085 X-Spam-Evidence: '*H*': 0.83; '*S*': 0.00; 'subject:two': 0.07; 'utf-8': 0.07; 'spaces': 0.09; 'cc:addr:python-list': 0.11; 'ignoring': 0.16; 'pep8': 0.16; 'rules.': 0.16; 'spacing': 0.16; 'ignore': 0.16; 'thanks,': 0.17; 'wrote:': 0.18; 'trying': 0.19; 'possible,': 0.19; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'url:mailman': 0.30; 'that.': 0.31; 'too.': 0.31; 'enforce': 0.31; 'indentation': 0.31; 'url:python': 0.33; 'level.': 0.33; 'sense': 0.34; 'subject:with': 0.35; 'advice': 0.35; 'agree': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'url:listinfo': 0.36; 'subject:?': 0.36; 'hi,': 0.36; 'url:org': 0.36; 'should': 0.36; 'too': 0.37; 'two': 0.37; 'problems': 0.38; 'url:mail': 0.40; 'catch': 0.60; 'course.': 0.60; 'from:charset:utf-8': 0.61; 'simply': 0.61; 'skip:\xe2 10': 0.65; 'to:addr:gmail.com': 0.65; 'life': 0.66; '8bit%:21': 0.69; '8bit%:43': 0.74; '*really*': 0.84; 'it\xe2\x80\x99s': 0.84; 'obvious.': 0.84; 'don\xe2\x80\x99t': 0.91; 'url:tk': 0.95 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=TqfoBVqlwWnbg6x+R08Pplui/WXuiFFzKQE2adyjcUA=; b=zyKqWybmXX6btXOKVIncVrACGhaYOPNAI/QOJ7em9nteU7xiE7UqG4gKnZl3ukR1QQ g7x0kFw53U04Gq/jEeK/UNCBBPKj8Aa+2d5+yoAr7Wij4jo50Zd2MheP8ZLayy5xtxhr y4KlXFHHzNvVwx2JoczyZk3EdU0YZ/09mExjEc06kavOw2LXqE6sUGoQC5O6UXz9O3kM 1mLOAelSqjNDvB8tB9kUQm7iaLEI5YZ9dJVBeuHBswWLwHZhqq2VWuOfFsRAli6iNVKW MrF6sr/8RmAZaIDurDf93IZ1+3kEzzH8OiPD1Gj0e8GabzelXSCEjIwaDEO7gue7CgDU Ermg== MIME-Version: 1.0 X-Received: by 10.50.79.161 with SMTP id k1mr2632494igx.31.1396943563691; Tue, 08 Apr 2014 00:52:43 -0700 (PDT) In-Reply-To: References: Date: Tue, 8 Apr 2014 09:52:43 +0200 Subject: Re: change spacing to two instead of four with pep8 or flake8? From: =?UTF-8?B?Q2hyaXMg4oCcS3dwb2xza2HigJ0gV2Fycmljaw==?= To: Dennis Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: python-list X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 38 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1396943572 news.xs4all.nl 2962 [2001:888:2000:d::a6]:44103 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:69839 On Tue, Apr 8, 2014 at 5:06 AM, Dennis 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 =E2=80=9Cuse 4 spaces per indentation level=E2=80=9D. If you don=E2=80= =99t agree with this rule, simply don=E2=80=99t use tools that enforce these rules. It=E2=80=99= s that easy. But note, that E111 is =E2=80=9Cindentation is not a multiple of four=E2=80= =9D. 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. --=20 Chris =E2=80=9CKwpolska=E2=80=9D Warrick PGP: 5EAAEA16 stop html mail | always bottom-post | only UTF-8 makes sense