semvec/pypi-packages huggingface dataset:
blackdaemon 0.1.0.1
Daemon to automatically run black, the uncompromising code formatter.
License: MIT
Requires Python: >=3.6
Keywords: daemon black automation formatter yapf autopep8 pyfmt gofmt rustfmt

[![](https://img.shields.io/badge/pypi-0.1.0.1-blue.svg)](https://pypi.python.org/pypi/blackdaemon/) <a href="https://github.com/ambv/black"><img alt="Code style: black" src="https://img.shields.io/badge/code%20style-black-000000.svg"></a>


A daemon to automatically run the Uncompromising Code Formatter [`black`](https://github.com/ambv/black) by watching a directory or file for changes.

## Installation

```
pip install blackdaemon
```

## Use
```
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
```

## Homepage
[https://github.com/cs01/blackdaemon](https://github.com/cs01/blackdaemon)