额外的pyflakes

flakeplus的Python项目详细描述


Version:1.0.0
Download:http://pypi.python.org/pypi/flakeplus/
Source:http://github.com/ask/flakeplus/
Keywords:flakes, development, process

Overview

FlakePlus检测到一些额外的薄片,这是释放过程的一部分 对于芹菜,Kombu等人

Flakes

  • 所有文件都必须从__future__导入绝对导入

  • 如果python 2.5是一个目标,那么任何使用with语句的文件 还必须从__future__

    导入

    Disabled by options ^{tt3}$ and ^{tt4}$).

  • 如果python 2.7是目标--2.7,则所有文件 还必须从__future__导入unicode_literals

  • 代码不能包含调试打印语句

    A debugging print statement is any print emitting a string that

    • optionally starts with any sequence of non-alphanumeric chars
    • an all-uppercase word followed by a colon,

    示例:

    print('CONN: %r' % (connection,))     # DEBUG!
    
    print('The connection was lost')       # NOT DEBUG
    
    print('> STUPID: %r' % (obj,))        # DEBUG!
    
    print('>>>>> OMFG: %r !!!!' % (obj,)) # definitely DEBUG!
    

Example

flakeplus是从命令行运行的:

$ flakeplus dir1 .. dirN

如果目标版本是2.6及以上版本,请使用2.6开关:

$ flakeplus --2.6 dir1 .. dirN

如果目标版本是2.7及更高版本,请使用2.7开关:

$ flakeplus --2.7 dir1 .. dirN

Installation

您可以通过python包索引(pypi)安装flakeplus 或者来源。

要使用pip安装,请执行以下操作:

$ pip install -U flakeplus

要使用“简易安装”进行安装,请执行以下操作:

$ easy_install -U flakeplus

Downloading and installing from source

从下载最新版本的flakeplus http://pypi.python.org/pypi/flakeplus/

您可以通过执行以下操作安装它:

$ tar xvfz flakeplus-0.0.0.tar.gz
$ cd flakeplus-0.0.0
$ python setup.py build
# python setup.py install # as root

Using the development version

您可以通过执行以下操作克隆存储库:

$ git clone git://github.com/ask/flakeplus.git

Bug tracker

如果您有任何建议、错误报告或烦恼,请报告 发送到位于http://github.com/ask/flakeplus/issues/

License

此软件在新的bsd许可证下获得许可。请参阅LICENSE 文件位于顶级分发目录中,以获取完整的许可证文本。

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
如果需要java解释,带嵌套allOf的ApplySync会将CompletionStage视为已完成   amazon web服务AWS Lambda触发器的代码;JAVA   格式化如何在java中确保数字不超过2   java无法通过SpringMaven项目集成和运行liquibase   java在javaFX中显示数学公式   java如何调试j_安全检查问题   爪哇克鲁约vs杰克逊   java构造函数行为继承和静态/动态绑定   如何测量wifi网络中的延迟java 安卓   java如何在cardlayout中显示其他类的面板?   java从安卓向服务器上传图像字节数组文件?   java从JSP页面调用servlet上的函数   java Android Studio错误“Android资源编译失败”   java动态地向类添加属性   带hbm的Hibernate中主键的java强制设置器。xml