Skip to main content

Daemon to automatically run black, the uncompromising code formatter.

Project description

Code style: black

A daemon to automatically run the Uncompromising Code Formatter 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
blackdaemon-0.1.0.1-py2.py3-none-any.whl (2.2 kB) Copy SHA256 hash SHA256 Wheel py2.py3 May 11, 2018
blackdaemon-0.1.0.1.tar.gz (2.2 kB) Copy SHA256 hash SHA256 Source None May 11, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page