Daemon to automatically run black, the uncompromising code formatter.
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
blackdaemon-0.1.0.1.tar.gz
(2.2 kB
view details)
Built Distribution
File details
Details for the file blackdaemon-0.1.0.1.tar.gz
.
File metadata
- Download URL: blackdaemon-0.1.0.1.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fdf65b2ba3fbf29f4cd2543710ebdc75de8bb198d45918c50099d1edc7c9afe1 |
|
MD5 | f201437047c821b466053bb97098a1b0 |
|
BLAKE2b-256 | 4e752ade3c1cc3d787cfbff6ba578ca53cc832f88674905a17c62860517722ef |
File details
Details for the file blackdaemon-0.1.0.1-py2.py3-none-any.whl
.
File metadata
- Download URL: blackdaemon-0.1.0.1-py2.py3-none-any.whl
- Upload date:
- Size: 2.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84404a4923b09e686a8d53dff76969d02053ed7894de886c2d040fe6121f1ca5 |
|
MD5 | 8205a09daf6789b001701fc3b5dcfcab |
|
BLAKE2b-256 | 0b57a607121c2263da2d7635ce514d2822ac42ff2d311b39ffbc84f880121e54 |