Metadata-Version: 2.1
Name: blackdaemon
Version: 0.1.0.1
Summary: Daemon to automatically run black, the uncompromising code formatter.
Home-page: https://github.com/cs01/blackdaemon
Author: Chad Smith
Author-email: grassfedcode@gmail.com
License: MIT
Keywords: daemon black automation formatter yapf autopep8 pyfmt gofmt rustfmt
Platform: UNKNOWN
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Software Development :: Quality Assurance
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: black
Requires-Dist: watchdog (<0.9,>=0.8.3)

[![](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)


