V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
Livid
272.76D
572.66D
V2EX  ›  Python

关于 pep8 风格检查

  •  
  •   Livid ·
    PRO
    · Jan 11, 2013 · 5130 views
    This topic created in 4867 days ago, the information mentioned may be changed or developed.
    现在是否有这样的项目,可以对整个 Python 项目进行 pep8 风格检查,然后将输出结果组织成一个清晰的 web 界面?
    5 replies    1970-01-01 08:00:00 +08:00
    zuroc
        1
    zuroc  
       Jan 11, 2013
    http://python.42qu.com/#11501917
    按照 PEP8 风格 自动排版 python 代码
    huxuan
        2
    huxuan  
       Jan 13, 2013
    记得参与过的一个开源项目用的是pep8+Makefile方式,在Makefile里大致写成这样
    pep8:
    <tab>pep8 --statistics --count *.py
    要是项目比较复杂,层次比较多,可以用个组合命令
    find | xargs 啥的,记不太清楚了
    这样用起来和pylint差不多比较适合coder
    如果一定要web页面,是不是可以考虑用个简单的框架,直接把输出结果写到web页面上?
    ritksm
        3
    ritksm  
       Jan 13, 2013
    pylint的结果做个解析应该也可以吧。。。
    duhastmich
        4
    duhastmich  
       Jan 14, 2013
    @zuroc 您是说autopep8吗? 链接好像不对..
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2900 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 62ms · UTC 11:24 · PVG 19:24 · LAX 04:24 · JFK 07:24
    ♥ Do have faith in what you're doing.