Path: csiph.com!usenet.pasdenom.info!news.redatomik.org!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'argument': 0.05; 'widely': 0.05; 'subject:Python': 0.06; 'nicely': 0.07; 'odd': 0.07; 'subject:code': 0.07; 'adopted': 0.09; 'consistency': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'style.': 0.09; 'subject:editor': 0.09; 'systems.': 0.12; 'finney': 0.16; 'mixture': 0.16; 'nowadays': 0.16; 'readable': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'code.': 0.18; 'code,': 0.22; 'coding': 0.22; 'header:User- Agent:1': 0.23; 'developers': 0.25; 'define': 0.26; 'defined': 0.27; 'header:X-Complaints-To:1': 0.27; 'chris': 0.29; 'enforce': 0.31; 'styles': 0.31; 'table,': 0.31; 'wright': 0.31; 'writes:': 0.31; 'file': 0.32; 'run': 0.32; 'text': 0.33; 'problem': 0.35; 'subject: (': 0.35; 'editor': 0.35; 'there': 0.35; 'version': 0.36; 'consistent': 0.36; 'url:org': 0.36; 'should': 0.36; 'subject:New': 0.37; 'las': 0.37; 'project': 0.37; 'easily': 0.37; 'ben': 0.38; 'requiring': 0.38; 'to:addr:python-list': 0.38; 'files': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'even': 0.60; 'read': 0.60; 'consists': 0.60; 'helps': 0.61; "you're": 0.61; 'different': 0.65; 'between': 0.67; "employees'": 0.84; 'furious': 0.84; 'plugins': 0.84; 'received:125': 0.84; 'roulette': 0.84; 'vegas,': 0.84; 'adopt': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Ben Finney Subject: EditorConfig for cross-editor consistent code style (was: New to Python - block grouping (spaces)) Date: Fri, 17 Apr 2015 06:10:30 +1000 References: <9fc57fc9-0399-4ff3-882a-d041f02827d8@googlegroups.com> <6580b5d5-92f5-4bfa-b1d0-889c69fe82bb@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Gmane-NNTP-Posting-Host: jigong.madmonks.org X-Public-Key-ID: 0xAC128405 X-Public-Key-Fingerprint: 517C F14B B2F3 98B0 CB35 4855 B8B2 4C06 AC12 8405 X-Public-Key-URL: http://www.benfinney.id.au/contact/bfinney-pubkey.asc X-Post-From: Ben Finney User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) Cancel-Lock: sha1:jP0pohBff+nYFWkGnTEH20oXCPk= X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20 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: 27 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1429215052 news.xs4all.nl 2830 [2001:888:2000:d::a6]:48041 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:89050 Chris Angelico writes: > If you're prepared to run a beautifier on your employees' code, you > should have no problem requiring that they adopt a syntactically-legal > style. For teams with a mixture of text editors in use, there are even tools nowadays to help everyone's text editor enforce consistency of the fundamentals in the code. One which is ready now and already widely adopted is EditorConfig: EditorConfig helps developers define and maintain consistent coding styles between different editors and IDEs. The EditorConfig project consists of a file format for defining coding styles and a collection of text editor plugins that enable editors to read the file format and adhere to defined styles. EditorConfig files are easily readable and they work nicely with version control systems. -- \ “I was in Las Vegas, at the roulette table, having a furious | `\ argument over what I considered to be an odd number.” —Steven | _o__) Wright | Ben Finney