额外的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
Bug tracker
如果您有任何建议、错误报告或烦恼,请报告 发送到位于http://github.com/ask/flakeplus/issues/
License
此软件在新的bsd许可证下获得许可。请参阅LICENSE 文件位于顶级分发目录中,以获取完整的许可证文本。