Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #40262

Best Practices with Python

Path csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <stephane@wirtel.be>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.018
X-Spam-Evidence '*H*': 0.97; '*S*': 0.00; 'python.': 0.02; 'syntax': 0.03; 'output': 0.04; 'subject:Python': 0.05; 'debugging': 0.05; 'buildbot': 0.07; 'ast': 0.09; ';-)': 0.11; 'clone': 0.16; 'html)': 0.16; 'matching.': 0.16; 'permissive': 0.16; 'all,': 0.21; 'parse': 0.22; 'seems': 0.23; 'project,': 0.24; 'header :User-Agent:1': 0.26; 'logging': 0.27; 'fine': 0.28; 'integration': 0.29; 'code': 0.31; 'strict': 0.33; 'to:addr :python-list': 0.33; 'project': 0.34; 'server': 0.35; 'formats': 0.35; 'add': 0.36; 'but': 0.36; 'url:org': 0.36; 'useful': 0.36; 'subject:with': 0.36; 'files': 0.38; 'several': 0.39; 'to:addr:python.org': 0.39; 'think': 0.40; 'your': 0.60; 'content- disposition:inline': 0.60; 'dead': 0.62; 'more': 0.63; 'continuous': 0.65; 'url:be': 0.65; 'quality': 0.69; 'behaviors': 0.71; 'received:109': 0.74; 'mock': 0.84; 'panda': 0.84; 'subject:Practices': 0.84; 'subject:Best': 0.91; 'enhancement': 0.95
Date Fri, 1 Mar 2013 16:10:11 +0100
From Stephane Wirtel <stephane@wirtel.be>
To python-list@python.org
Subject Best Practices with Python
MIME-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Disposition inline
Content-Transfer-Encoding 8bit
User-Agent Mutt/1.5.21 (2010-09-15)
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.2735.1362150863.2939.python-list@python.org> (permalink)
Lines 57
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1362150863 news.xs4all.nl 6860 [2001:888:2000:d::a6]:44839
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:40262

Show key headers only | View raw


Hi all,

How are you ? me ? fine ;-)

I have a lot of questions about the development with Python.

I want to discuss about the tools for the enhancement of the quality of
a project, not about the debugging (I don't want to discuss about pdb,
ipdb, pudb, ...)

I use these tools 

1. Documentation
    sphinx: http://sphinx-doc.org/

    a. I like the reStructuredText syntax
    b. We can parse the files and get an AST
    c. We can add a lot of directives or new roles for custom behaviors
    d. We can generate several output formats (pdf, epub, html)

2. BDD
    I use Behave: http://pythonhosted.org/behave/

3. TDD
    unittest2
    mock
    nose

4. Code

    Clone Digger ?
        for me this project is very useful because we can determine the
        duplicated code via a pattern matching.
        but the project seems to be dead

    pylint ?
        very strict but we can change the configuration, but very useful
        to have a quality of code

    flake8 ?
        more permissive than pylint.

5. Continuous Integration Server
    Jenkins with Shining Panda

    What do you think about Buildbot ?

6. Logging

And you, what are your best practices ?

Regards,

Stéphane

-- 
Stéphane Wirtel - http://wirtel.be - @matrixise

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Best Practices with Python Stephane Wirtel <stephane@wirtel.be> - 2013-03-01 16:10 +0100

csiph-web