在工作区中查看彩色的增量diff,并用来自您最喜欢的linter的消息进行注释。

cdifflint的Python项目详细描述


cdifflint

基于术语的工具,用于查看coloredincrementaldiff in agit/mercurial/svn 工作区或来自stdin,与受影响的linting错误并排。要求 Python(>;=2.7.0)和less

安装

使用pip安装

cdifflint已经列在PyPI上,如果 你有工具。

pip install --upgrade cdifflint

使用setup.py安装

如果没有pip,也可以从源代码运行setup.py。

git clone https://github.com/rgeoghegan/cdifflint.git
cd cdifflint
./setup.py install

使用量

键入cdifflint -h以显示用法:

$ cdifflint -h
usage: cdifflint [-h] [-s] [-w N] [-l] [-c M] [-t {pep8,jslint,pyflakes}]

View colored, incremental diff in a workspace, annotated with messages from
your favorite linter.

optional arguments:
  -h, --help            show this help message and exit
  -s, --side-by-side    enable side-by-side mode
  -w N, --width N       set text width for side-by-side mode, 0 for auto
                        detection, default is 80
  -l, --log             show log with changes from revision control
  -c M, --color M       colorize mode 'auto' (default), 'always', or 'never'
  -t {pep8,jslint,pyflakes}, --lint {pep8,jslint,pyflakes}
                        run the given linters and show the lint messages in
                        the diff. Currently supports pep8, jslint, pyflakes.
                        (Can be specified multiple times)

Note: Option parser will stop on first unknown option and pass them down to
underneath revision control

另见

我从highly中获得的原始代码是cdiff工具,它做的最多 关于重担。

更改日志

版本1.0.0(2016-12-14)

  • Working off cdiff version 0.9.8, can now show diffs, and also list any linter output within the diff.

版本1.0.1(2016-12-24)

  • Fixing distributed package so it actually installs

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

推荐PyPI第三方库


热门话题
Gson类中的java验证错误   If和elseif之间的java差异?   字典Java8地图。输入比较器   java连接到远程计算机以获得WMI支持   java如何使用改型处理JSON对象中的空值   在Java中使用Comparator时不可编译的源代码   java将Jar添加到JSP的运行时路径   带有随机对象的while循环的java大O时间复杂性   java可以在不考虑参数的情况下模拟方法吗?   java我有一个简单的代码,它不工作。无法修复错误“println”   向eclipse添加Xively java库   java是否可以启用本机代码的缓存?   全局变量如何在Java中的所有类之间共享要使用的语言环境?   Java内存游戏如何翻转单个卡?