Skip to main content

black command for setuptools

Project description

Custom setuptools command for black formatting tool (see https://github.com/ambv/black).

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

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

You may also use customize the build_py command to enforce format validation at build time. In your setup.py:

import setuptools_black
...
setuptools.setup(
...
    setup_requires=["setuptools-black"],
...
    cmdclass={
        "build_py": setuptools_black.BuildCommand,
    },
...
)

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.0.tar.gz (2.3 kB view hashes)

Uploaded Source

Built Distribution

setuptools_black-0.1.0-py3-none-any.whl (3.1 kB view hashes)

Uploaded Python 3

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