额外的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错误   java是否提供内置的静态字符串。比较方法?   添加“再次播放?”Java中我的随机数猜测游戏的功能   java在tomcat 8中配置JPDA   编译器构造Java:检查编译时是否存在给定的方法名   当RedistreLimiter阻止请求时,java Spring云网关全局筛选器未执行   java无法将带有Gradle的单片Spring Boot应用程序转换为多模块   Eclipse(IDE)如何在没有公共类的情况下在Java中运行main方法?   用Java上传Youtube帖子   没有css和javascript的html Java httpGet页面正文   具有相同哈希代码的java Equal对象不会映射到HashMap中的相同值   字符串格式在Java中如何向数字中添加左填充的零?   java表示XML/DOM对象中attributesvalues或textnodes上的“条件”   JavaSpringJPA根据从POST请求体获取的列和值查询数据库   java BouncyCastle编码差异   java从intellij idea中提取运行命令   java类型、属性、实例和值之间的关系   java除了一个复选框外,屏幕上没有显示任何内容