Skip to main content

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

Metadata

Release files for blackdaemon 0.1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for blackdaemon 0.1.0.1
File Size Uploaded
blackdaemon-0.1.0.1.tar.gz 2.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for blackdaemon 0.1.0.1
File Interpreter ABI Platform
blackdaemon-0.1.0.1-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 4.4 kB

Release files / blackdaemon-0.1.0.1.tar.gz

Download URL blackdaemon-0.1.0.1.tar.gz
Size 2.2 kB
Tags Source
SHA-256 checksum
How to use checksums
fdf65b2ba3fbf29f4cd2543710ebdc75de8bb198d45918c50099d1edc7c9afe1
BLAKE2b-256 checksum
How to use checksums
4e752ade3c1cc3d787cfbff6ba578ca53cc832f88674905a17c62860517722ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / blackdaemon-0.1.0.1-py2.py3-none-any.whl

Download URL blackdaemon-0.1.0.1-py2.py3-none-any.whl
Size 2.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
84404a4923b09e686a8d53dff76969d02053ed7894de886c2d040fe6121f1ca5
BLAKE2b-256 checksum
How to use checksums
0b57a607121c2263da2d7635ce514d2822ac42ff2d311b39ffbc84f880121e54
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page