在工作区中查看彩色的增量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第三方库


热门话题
ssl证书javax。网ssl。SSLHandshakeException:java。安全cert.CertificateException:没有与IP地址匹配的主题替代名称   基于组件的体系结构的java粒度   java在读取文件中的下一行和上一行时,我得到一个空指针异常   java是什么。StrutConfig。xml。strutsdia文件?   java中如何根据枚举字段对一组对象进行排序   java Firebase setPersistenceEnabled。导致大量内存使用   java奇数编译泛型类和列表错误   java类型org没有可用的源代码。石英克隆表达;您是否忘记继承所需的模块?   java如何使用map计算列表中整数列表的和,并获得一个新列表,其中每个条目对应于每个计算出的和?   java二进制搜索不会结束   java跳过Jackson中的错误JSON数据   在服务层中使用依赖项注入时引发java空指针异常。DAO类bean为空   访问者模式如何解释这两个Java程序运行时间的差异?   用Java扩展日历   java调用通用静态方法