跳转到主要内容

自动运行black(坚定的代码格式化工具)的守护进程。

项目描述

Code style: black

通过监视目录或文件以查找更改来自动运行不可妥协的代码格式化工具black的守护进程。

安装

pip install blackdaemon

使用

blackdaemon <directory or file>

API

>> python blackdaemon.py --help
usage: blackdaemon.py [-h] [--recursive | --non-recursive] [--no-run-on-start]
                      [-v] [-q]
                      [path]

positional arguments:
  path               path of file or directory to watch for changes

optional arguments:
  -h, --help         show this help message and exit
  --recursive        recursively watch director for changes (default)
  --non-recursive
  --no-run-on-start  run black only when files change, not on startup.
  -v, --version      print version of blackdaemon and black, then exit
  -q, --quiet        don't emit non-error messages to stderr. Errors are still
                     emitted, silence those with 2>/dev/null

主页

https://github.com/cs01/blackdaemon

项目详情


下载文件

下载适用于您平台的项目文件。如果您不确定选择哪个,请了解更多关于安装包的信息。

源代码分发

blackdaemon-0.1.0.1.tar.gz (2.2 kB 查看哈希值)

上传时间

构建分发

blackdaemon-0.1.0.1-py2.py3-none-any.whl (2.2 kB 查看哈希值)

上传时间: Python 2 Python 3

由以下机构支持