Skip to main content

black command for setuptools

Project description

Build Status Coverage Status

Custom setuptools command for black formatting tool (see

This package adds the format command to setuptools, which uses black to reformat code:

> python format
running format
All done!  🍰 5 files left unchanged

You may also use customize the build command to enforce format validation at build time. Build will fail if there's any formatting error.

In your

import setuptools_black
        "build": setuptools_black.BuildCommand,


You'll have to install setuptools-black first, as setup_requires can't be used to install a package which must be imported by itself...

Project details

Download files

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

Source Distribution

setuptools-black-0.1.5.tar.gz (4.0 kB view hashes)

Uploaded source

Built Distribution

setuptools_black-0.1.5-py3-none-any.whl (5.3 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page