Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

black command for setuptools

Project description

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.

Files for setuptools-black, version 0.1.4
Filename, size File type Python version Upload date Hashes
Filename, size setuptools_black-0.1.4-py3-none-any.whl (3.4 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size setuptools-black-0.1.4.tar.gz (2.5 kB) File type Source Python version None Upload date Hashes View hashes

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 SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page